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 --- protocols/JabberG/src/jabber_console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_console.cpp b/protocols/JabberG/src/jabber_console.cpp index 276b3b8f45..94a9fc9c95 100644 --- a/protocols/JabberG/src/jabber_console.cpp +++ b/protocols/JabberG/src/jabber_console.cpp @@ -571,7 +571,7 @@ public: void __cdecl CJabberProto::ConsoleThread(void*) { Thread_SetName("Jabber: ConsoleThread"); - MThreadHandle threadLock(m_hThreadConsole); + MThreadLock threadLock(m_hThreadConsole); m_dwConsoleThreadId = ::GetCurrentThreadId(); m_pDlgConsole = new CJabberDlgConsole(this); @@ -607,7 +607,7 @@ INT_PTR __cdecl CJabberProto::OnMenuHandleConsole(WPARAM, LPARAM) if (m_pDlgConsole) SetForegroundWindow(m_pDlgConsole->GetHwnd()); else - ForkThread(&CJabberProto::ConsoleThread); + m_hThreadConsole = ForkThreadEx(&CJabberProto::ConsoleThread, 0, &m_dwConsoleThreadId); return 0; } -- cgit v1.2.3