Skip to content

Commit f96f2d4

Browse files
committed
Fix build break when crashdumps are disabled
1 parent 90a0b49 commit f96f2d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Core/Libraries/Source/WWVegas/WWLib/DbgHelpLoader.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
DbgHelpLoader* DbgHelpLoader::Inst = NULL;
2323

2424
DbgHelpLoader::DbgHelpLoader()
25-
: m_miniDumpWriteDump(NULL)
26-
, m_symInitialize(NULL)
25+
: m_symInitialize(NULL)
26+
#ifdef RTS_ENABLE_CRASHDUMP
27+
, m_miniDumpWriteDump(NULL)
28+
#endif
2729
, m_symCleanup(NULL)
2830
, m_symLoadModule(NULL)
2931
, m_symUnloadModule(NULL)
@@ -87,7 +89,9 @@ bool DbgHelpLoader::load()
8789
Inst->m_loadedFromSystem = true;
8890
}
8991

92+
#ifdef RTS_ENABLE_CRASHDUMP
9093
Inst->m_miniDumpWriteDump = reinterpret_cast<MiniDumpWriteDump_t>(::GetProcAddress(Inst->m_dllModule, "MiniDumpWriteDump"));
94+
#endif
9195
Inst->m_symInitialize = reinterpret_cast<SymInitialize_t>(::GetProcAddress(Inst->m_dllModule, "SymInitialize"));
9296
Inst->m_symCleanup = reinterpret_cast<SymCleanup_t>(::GetProcAddress(Inst->m_dllModule, "SymCleanup"));
9397
Inst->m_symLoadModule = reinterpret_cast<SymLoadModule_t>(::GetProcAddress(Inst->m_dllModule, "SymLoadModule"));

0 commit comments

Comments
 (0)