1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix wrong check for wcstombs return value

This commit is contained in:
xyz1001 2023-09-07 11:29:43 +08:00
parent 4e83aa3818
commit 27ac89547d

View File

@ -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<std::size_t>(-1) )
{
return buf;
}