From 23f0b751b57b2dd9f6e912cec92364ff59b864b2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 9 Sep 2021 22:24:07 +0300 Subject: fix for a crappy ::GetCurrentThread call that breaks all Wait* functions --- plugins/Ping/src/pingthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Ping/src') diff --git a/plugins/Ping/src/pingthread.cpp b/plugins/Ping/src/pingthread.cpp index a57266e6f1..9921eff5d2 100644 --- a/plugins/Ping/src/pingthread.cpp +++ b/plugins/Ping/src/pingthread.cpp @@ -74,7 +74,7 @@ void SetProtoStatus(wchar_t *pszLabel, char *pszProto, int if_status, int new_st void __cdecl sttCheckStatusThreadProc(void*) { - MThreadHandle threadLock(status_update_thread); + MThreadLock threadLock(status_update_thread); clock_t start_t = clock(), end_t; while (!get_thread_finished()) { @@ -904,7 +904,7 @@ void InitList() ReloadFont(0, 0); - mir_forkthread(sttCheckStatusThreadProc); + status_update_thread = mir_forkthread(sttCheckStatusThreadProc); } void DeinitList() -- cgit v1.2.3