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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user