Enable MemoryModule debug output if /DDEBUG passed

This commit is contained in:
Oleksii Shevchuk 2017-01-10 22:43:27 +02:00
parent 2a2e6d949f
commit ac73116fa3
1 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,11 @@
* Joachim Bauch. All Rights Reserved.
*
*/
#ifdef DEBUG
#define DEBUG_OUTPUT
#endif
#include <windows.h>
#include <winnt.h>
#include <stddef.h>
@ -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