mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00: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
|
#ifdef _WIN64
|
||||||
static const WORD HOST_MACHINE = IMAGE_FILE_MACHINE_AMD64;
|
static const int HOST_MACHINE = IMAGE_FILE_MACHINE_AMD64;
|
||||||
#else
|
#else
|
||||||
static const WORD HOST_MACHINE = IMAGE_FILE_MACHINE_I386;
|
static const int HOST_MACHINE = IMAGE_FILE_MACHINE_I386;
|
||||||
#endif
|
#endif
|
||||||
if (old_header->FileHeader.Machine != HOST_MACHINE) {
|
if (old_header->FileHeader.Machine != HOST_MACHINE) {
|
||||||
SetLastError(ERROR_BAD_EXE_FORMAT);
|
SetLastError(ERROR_BAD_EXE_FORMAT);
|
||||||
|
|||||||
Reference in New Issue
Block a user