From 3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 3 May 2018 16:02:14 +0200 Subject: mir_forkThread - stronger typizatioin for thread function parameter --- protocols/IRCG/src/scripting.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols/IRCG/src/scripting.cpp') diff --git a/protocols/IRCG/src/scripting.cpp b/protocols/IRCG/src/scripting.cpp index ee3c57ab90..8de2060953 100644 --- a/protocols/IRCG/src/scripting.cpp +++ b/protocols/IRCG/src/scripting.cpp @@ -64,11 +64,10 @@ static void __stdcall OnHook(void * pi) delete gch; } -static void __cdecl GuiOutThread(LPVOID di) +static void __cdecl GuiOutThread(GCHOOK *gch) { Thread_SetName("IRC: GuiOutThread"); - GCHOOK* gch = (GCHOOK*)di; - CallFunctionAsync(OnHook, (void*)gch); + CallFunctionAsync(OnHook, gch); } INT_PTR __cdecl CIrcProto::Scripting_InsertGuiOut(WPARAM, LPARAM lParam) @@ -100,7 +99,7 @@ INT_PTR __cdecl CIrcProto::Scripting_InsertGuiOut(WPARAM, LPARAM lParam) else gchook->pszModule = nullptr; - mir_forkthread(GuiOutThread, gchook); + mir_forkThread(GuiOutThread, gchook); return 0; } -- cgit v1.2.3