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