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

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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_he 3D4C ader->FileHeader.Machine != HOST_MACHINE) {
534534
SetLastError(ERROR_BAD_EXE_FORMAT);

0 commit comments

Comments
 (0)
0