mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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;
|
bool threadSent = false;
|
||||||
const auto hnd = OpenThread( THREAD_QUERY_LIMITED_INFORMATION, FALSE, DWORD( thread ) );
|
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
|
#if defined NTDDI_WIN10_RS2 && NTDDI_VERSION >= NTDDI_WIN10_RS2
|
||||||
PWSTR tmp;
|
PWSTR tmp;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user