8000 Fix MSVC compiler error. · fancycode/MemoryModule@e2826eb · GitHub
[go: up one dir, main page]

Skip to content

Commit e2826eb

Browse files
committed
Fix MSVC compiler error.
1 parent 49a8287 commit e2826eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MemoryModule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,9 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data, size_t size,
526526
}
527527

528528
#ifdef _WIN64
529-
static const WORD HOST_MACHINE = IMAGE_FILE_MACHINE_AMD64;
529+
static const int HOST_MACHINE = IMAGE_FILE_MACHINE_AMD64;
530530
#else
531-
static const WORD HOST_MACHINE = IMAGE_FILE_MACHINE_I386;
531+
static const int HOST_MACHINE = IMAGE_FILE_MACHINE_I386;
532532
#endif
533533
if (old_header->FileHeader.Machine != HOST_MACHINE) {
534534
SetLastError(ERROR_BAD_EXE_FORMAT);

0 commit comments

Comments
 (0)
0