mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-12 20:05:28 +00:00
Merge pull request #1401 from Lectem/fix/win32-non-desktop
`TRACY_WIN32_NO_DESKTOP` should use `GetVersionExW` explicitly.
This commit is contained in:
@@ -524,7 +524,7 @@ static const char* GetHostInfo()
|
||||
auto ptr = buf;
|
||||
#if defined _WIN32
|
||||
# if defined TRACY_WIN32_NO_DESKTOP
|
||||
auto GetVersion = &::GetVersionEx;
|
||||
auto GetVersion = &::GetVersionExW;
|
||||
# else
|
||||
auto GetVersion = (t_RtlGetVersion)GetProcAddress( GetModuleHandleA( "ntdll.dll" ), "RtlGetVersion" );
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user