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 --- plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp') diff --git a/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp b/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp index 2ec4f18332..f704f1ee08 100644 --- a/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp +++ b/plugins/MirandaG15/src/LCDFramework/CLCDConnectionLogitech.cpp @@ -21,9 +21,9 @@ DWORD WINAPI notificationCallback(IN int, } -void __cdecl initializeDrawingThread(void *pParam) +void __cdecl initializeDrawingThread(CLCDConnectionLogitech *pParam) { - ((CLCDConnectionLogitech*)pParam)->runDrawingThread(); + pParam->runDrawingThread(); } void CLCDConnectionLogitech::runDrawingThread() { @@ -109,7 +109,7 @@ CLCDConnectionLogitech::CLCDConnectionLogitech() CLCDConnectionLogitech::m_pInstance = this; - m_hDrawingThread = mir_forkthread(initializeDrawingThread, (void*)this); + m_hDrawingThread = mir_forkThread(initializeDrawingThread, this); } //************************************************************************ -- cgit v1.2.3