Merge pull request #1401 from Lectem/fix/win32-non-desktop

`TRACY_WIN32_NO_DESKTOP` should use `GetVersionExW` explicitly.
This commit is contained in:
Bartosz Taudul
2026-06-11 13:01:24 +02:00
committed by GitHub

View File

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