From cec88e53bd8a255e503088d9d8ea191e4fa11f5d Mon Sep 17 00:00:00 2001 From: Rubycat Date: Tue, 21 Mar 2023 11:03:54 +0100 Subject: [PATCH] don't log an error when running GetCurrentThread from non winpr thread Since https://github.com/FreeRDP/FreeRDP/commit/7c4a774e4eb9dfdf9271b6bbef2bb1b5191db398 this can legitimately happen in WaitForMultipleObjectsEx and is not actually an error. --- winpr/libwinpr/thread/thread.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/winpr/libwinpr/thread/thread.c b/winpr/libwinpr/thread/thread.c index edd748b2b..b239162ba 100644 --- a/winpr/libwinpr/thread/thread.c +++ b/winpr/libwinpr/thread/thread.c @@ -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; }