1
0
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:
Bartosz Taudul 2019-08-17 03:44:11 +02:00
parent 65e62dea06
commit 40eb8a5a03

View File

@ -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;