1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-16 00:03:45 +00:00

Updated LoadLibrary() to specify system32 path only

This commit is contained in:
Bryan Roe
2020-07-06 18:46:48 -07:00
parent bc6aa93ddc
commit f2cbf1f10d
5 changed files with 5 additions and 5 deletions

View File

@@ -1573,7 +1573,7 @@ duk_ret_t ILibDuktape_ScriptContainer_OS_arch(duk_context *ctx)
}
else
{
HMODULE hm = LoadLibraryA("Kernel32.dll");
HMODULE hm = LoadLibraryExA("Kernel32.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
void *func = (void*)GetProcAddress(hm, "IsWow64Process");
BOOL isWow = FALSE;