1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-04 17:43:45 +00:00

1. Fixed bug in self-update on Windows, when looking at argv

2. Added comments about LoadLibraryEx usage
3. Modified IsWow64() to use GetModuleHandleA() instead of LoadLibraryEx()
This commit is contained in:
Bryan Roe
2020-11-10 20:36:05 -08:00
parent cb7b76a1ab
commit 58a7305920
7 changed files with 33 additions and 86 deletions

View File

@@ -574,6 +574,7 @@ int wmain(int argc, char* wargv[])
gRemoteMouseRenderDefault = 1;
}
// This is only supported on Windows 8 / Windows Server 2012 R2 and newer
HMODULE shCORE = LoadLibraryExA((LPCSTR)"Shcore.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
DpiAwarenessFunc dpiAwareness = NULL;
if (shCORE != NULL)
@@ -611,6 +612,7 @@ int wmain(int argc, char* wargv[])
gRemoteMouseRenderDefault = 1;
}
// This is only supported on Windows 8 / Windows Server 2012 R2 and newer
HMODULE shCORE = LoadLibraryExA((LPCSTR)"Shcore.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
DpiAwarenessFunc dpiAwareness = NULL;
if (shCORE != NULL)
@@ -917,6 +919,7 @@ int wmain(int argc, char* wargv[])
}
else
{
// This is only supported on Windows 8 / Windows Server 2012 R2 and newer
FreeConsole();
HMODULE shCORE = LoadLibraryExA((LPCSTR)"Shcore.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
DpiAwarenessFunc dpiAwareness = NULL;