mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-08 19:44:06 +00:00
Updated LoadLibrary() to specify system32 path only
This commit is contained in:
@@ -9149,7 +9149,7 @@ long long ILibGetUptime()
|
||||
|
||||
// Windows 7 & Vista
|
||||
if (ILibGetUptimeFirst) {
|
||||
HMODULE hlib = LoadLibrary(TEXT("KERNEL32.DLL"));
|
||||
HMODULE hlib = LoadLibraryExA((LPCSTR)"KERNEL32.DLL", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
|
||||
if (hlib == NULL) return 0;
|
||||
pILibGetUptimeGetTickCount64 = (ULONGLONG(*)())GetProcAddress(hlib, "GetTickCount64");
|
||||
ILibGetUptimeFirst = 0;
|
||||
|
||||
Reference in New Issue
Block a user