Skip to content

Commit 0c74658

Browse files
committed
TRACY_WIN32_NO_DESKTOP should use GetVersionExW explicitly.
Since we use `RTL_OSVERSIONINFOW` we need to use W version explicitly
1 parent cc091a9 commit 0c74658

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/client/TracyProfiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static const char* GetHostInfo()
524524
auto ptr = buf;
525525
#if defined _WIN32
526526
# if defined TRACY_WIN32_NO_DESKTOP
527-
auto GetVersion = &::GetVersionEx;
527+
auto GetVersion = &::GetVersionExW;
528528
# else
529529
auto GetVersion = (t_RtlGetVersion)GetProcAddress( GetModuleHandleA( "ntdll.dll" ), "RtlGetVersion" );
530530
# endif

0 commit comments

Comments
 (0)