mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Proper check for invalid handle.
This commit is contained in:
parent
65e62dea06
commit
40eb8a5a03
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user