diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h index 242bd25694..42ace78ded 100644 --- a/Source/Core/Common/Src/Common.h +++ b/Source/Core/Common/Src/Common.h @@ -21,9 +21,13 @@ #define _CRTDBG_MAP_ALLOC #define _CRTDBG_MAP_ALLOC_NEW +#define CHECK_HEAP_INTEGRITY() + #ifdef _WIN32 #ifdef _DEBUG #include +#undef CHECK_HEAP_INTEGRITY +#define CHECK_HEAP_INTEGRITY() {if (!_CrtCheckMemory()) PanicAlert("memory corruption detected. see log.");} #endif #include "../../../PluginSpecs/CommonTypes.h"