diff options
Diffstat (limited to 'lib/System/Win32/DynamicLibrary.inc')
-rw-r--r-- | lib/System/Win32/DynamicLibrary.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/System/Win32/DynamicLibrary.inc b/lib/System/Win32/DynamicLibrary.inc index 251131e..83c67dc 100644 --- a/lib/System/Win32/DynamicLibrary.inc +++ b/lib/System/Win32/DynamicLibrary.inc @@ -37,9 +37,15 @@ using namespace sys; static std::vector<HMODULE> OpenedHandles; +#ifdef _WIN64 + typedef DWORD64 ModuleBaseType; +#else + typedef ULONG ModuleBaseType; +#endif + extern "C" { static BOOL CALLBACK ELM_Callback(PSTR ModuleName, - ULONG ModuleBase, + ModuleBaseType ModuleBase, ULONG ModuleSize, PVOID UserContext) { |