mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-20 21:59:45 -04:00
Deny loading any other architecture than 64bit if compiled for 64bit.
This commit is contained in:
+1
-1
@@ -377,7 +377,7 @@ HMEMORYMODULE MemoryLoadLibraryEx(const void *data,
|
||||
}
|
||||
|
||||
#ifdef _WIN64
|
||||
if (old_header->FileHeader.Machine == IMAGE_FILE_MACHINE_I386) {
|
||||
if (old_header->FileHeader.Machine != IMAGE_FILE_MACHINE_AMD64) {
|
||||
#else
|
||||
if (old_header->FileHeader.Machine != IMAGE_FILE_MACHINE_I386) {
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user