From ac73116fa33dbaa99c8885d3a7fdfa3a550a31ef Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Tue, 10 Jan 2017 22:43:27 +0200 Subject: [PATCH] Enable MemoryModule debug output if /DDEBUG passed --- client/sources/MemoryModule.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/sources/MemoryModule.c b/client/sources/MemoryModule.c index b3ab9098..d2b103c5 100644 --- a/client/sources/MemoryModule.c +++ b/client/sources/MemoryModule.c @@ -23,6 +23,11 @@ * Joachim Bauch. All Rights Reserved. * */ + +#ifdef DEBUG +#define DEBUG_OUTPUT +#endif + #include #include #include @@ -512,7 +517,7 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data, int (WINAPI *GetNativeSystemInfo) (SYSTEM_INFO *systemInfo); GetNativeSystemInfo = (void *) GetProcAddress (hModule, "GetNativeSystemInfo"); GetNativeSystemInfo(&sysInfo); - } + } result->pageSize = sysInfo.dwPageSize; // commit memory for headers