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:
parent
4e83aa3818
commit
27ac89547d
@ -222,7 +222,7 @@ TRACY_API const char* GetThreadName( uint32_t id )
|
|||||||
_GetThreadDescription( hnd, &tmp );
|
_GetThreadDescription( hnd, &tmp );
|
||||||
auto ret = wcstombs( buf, tmp, 256 );
|
auto ret = wcstombs( buf, tmp, 256 );
|
||||||
CloseHandle( hnd );
|
CloseHandle( hnd );
|
||||||
if( ret != 0 )
|
if( ret != static_cast<std::size_t>(-1) )
|
||||||
{
|
{
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user