don't log an error when running GetCurrentThread from non winpr thread

Since 7c4a774e4e
this can legitimately happen in WaitForMultipleObjectsEx and is not
actually an error.
This commit is contained in:
Rubycat 2023-03-21 11:03:54 +01:00 committed by akallabeth
parent 1a951a7ebc
commit cec88e53bd

View File

@ -815,13 +815,6 @@ WINPR_THREAD* winpr_GetCurrentThread(VOID)
return (HANDLE)&mainThread;
ret = TlsGetValue(currentThreadTlsIndex);
if (!ret)
{
WLog_ERR(TAG, "function called, but no matching entry in thread list!");
#if defined(WITH_DEBUG_THREADS)
DumpThreadHandles();
#endif
}
return ret;
}