mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Update TracySystem.cpp
This commit is contained in:
parent
05e3905742
commit
324cb3d625
@ -219,7 +219,7 @@ TRACY_API const char* GetThreadName( uint32_t id )
|
|||||||
if( hnd != 0 )
|
if( hnd != 0 )
|
||||||
{
|
{
|
||||||
PWSTR tmp;
|
PWSTR tmp;
|
||||||
if ( SUCCEEDED( _GetThreadDescription( hnd, &tmp ) ) )
|
if( SUCCEEDED( _GetThreadDescription( hnd, &tmp ) ) )
|
||||||
{
|
{
|
||||||
auto ret = wcstombs( buf, tmp, 256 );
|
auto ret = wcstombs( buf, tmp, 256 );
|
||||||
CloseHandle( hnd );
|
CloseHandle( hnd );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user