mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-20 10:13:40 -04:00
Fix MSVC compiler error.
This commit is contained in:
+2
-2
@@ -526,9 +526,9 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data, size_t size,
|
||||
}
|
||||
|
||||
#ifdef _WIN64
|
||||
static const WORD HOST_MACHINE = IMAGE_FILE_MACHINE_AMD64;
|
||||
static const int HOST_MACHINE = IMAGE_FILE_MACHINE_AMD64;
|
||||
#else
|
||||
static const WORD HOST_MACHINE = IMAGE_FILE_MACHINE_I386;
|
||||
static const int HOST_MACHINE = IMAGE_FILE_MACHINE_I386;
|
||||
#endif
|
||||
if (old_header->FileHeader.Machine != HOST_MACHINE) {
|
||||
SetLastError(ERROR_BAD_EXE_FORMAT);
|
||||
|
||||
Reference in New Issue
Block a user