mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-23 09:10:51 +00:00
Proper check for invalid handle.
This commit is contained in:
@@ -172,7 +172,7 @@ void SysTraceSendExternalName( uint64_t thread )
|
||||
{
|
||||
bool threadSent = false;
|
||||
const auto hnd = OpenThread( THREAD_QUERY_LIMITED_INFORMATION, FALSE, DWORD( thread ) );
|
||||
if( hnd != INVALID_HANDLE_VALUE )
|
||||
if( hnd != 0 )
|
||||
{
|
||||
#if defined NTDDI_WIN10_RS2 && NTDDI_VERSION >= NTDDI_WIN10_RS2
|
||||
PWSTR tmp;
|
||||
|
||||
Reference in New Issue
Block a user