1
0
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:
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

@@ -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;