diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 65ff8193..bc98baa1 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -207,7 +207,11 @@ t_GetModuleBaseNameA _GetModuleBaseNameA = (t_GetModuleBaseNameA)GetProcAddress( void SysTraceSendExternalName( uint64_t thread ) { bool threadSent = false; - const auto hnd = OpenThread( THREAD_QUERY_INFORMATION, FALSE, DWORD( thread ) ); + auto hnd = OpenThread( THREAD_QUERY_INFORMATION, FALSE, DWORD( thread ) ); + if( hnd == 0 ) + { + hnd = OpenThread( THREAD_QUERY_LIMITED_INFORMATION, FALSE, DWORD( thread ) ); + } if( hnd != 0 ) { #if defined NTDDI_WIN10_RS2 && NTDDI_VERSION >= NTDDI_WIN10_RS2