Fix 32-bit compilation failure

This commit is contained in:
Boring
2022-11-17 13:06:19 +08:00
parent a4bf9430d1
commit dcf5f3ccde
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ SIZE_T NTAPI _RtlCompareMemory(
const VOID* Source1,
const VOID* Source2,
SIZE_T Length) {
return decltype(&_RtlCompareMemory)(RtlGetNtProcAddress("RtlCompareMemory"))(Source1, Source2, Length);
return decltype(&_RtlCompareMemory)(GetProcAddress((HMODULE)MmpGlobalDataPtr->MmpBaseAddressIndex->NtdllLdrEntry->DllBase,"RtlCompareMemory"))(Source1, Source2, Length);
}
#define RtlCompareMemory _RtlCompareMemory
#endif