diff --git a/public/common/TracySystem.cpp b/public/common/TracySystem.cpp index 2a7d997e..05a16c43 100644 --- a/public/common/TracySystem.cpp +++ b/public/common/TracySystem.cpp @@ -222,7 +222,7 @@ TRACY_API const char* GetThreadName( uint32_t id ) _GetThreadDescription( hnd, &tmp ); auto ret = wcstombs( buf, tmp, 256 ); CloseHandle( hnd ); - if( ret != 0 ) + if( ret != static_cast(-1) ) { return buf; }