From 0c74658dd3e4c407dcc98dc503513e1507b2699a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Gr=C3=A9goire?= Date: Thu, 11 Jun 2026 12:05:30 +0200 Subject: [PATCH] `TRACY_WIN32_NO_DESKTOP` should use `GetVersionExW` explicitly. Since we use `RTL_OSVERSIONINFOW` we need to use W version explicitly --- public/client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp index 475864a3..2551201d 100644 --- a/public/client/TracyProfiler.cpp +++ b/public/client/TracyProfiler.cpp @@ -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