From 40eb8a5a03d66a2637a4aeb0a4241e03518769f9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 17 Aug 2019 03:44:11 +0200 Subject: [PATCH] Proper check for invalid handle. --- client/TracySysTrace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 9edb98cf..b4b5078f 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -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;