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/HTTPServer/src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/HTTPServer/src/main.cpp') diff --git a/plugins/HTTPServer/src/main.cpp b/plugins/HTTPServer/src/main.cpp index 859806d57e..5409b6f430 100644 --- a/plugins/HTTPServer/src/main.cpp +++ b/plugins/HTTPServer/src/main.cpp @@ -560,9 +560,8 @@ static INT_PTR nHttpGetAllShares(WPARAM /*wParam*/, LPARAM /*lParam*/) // Developer : KN ///////////////////////////////////////////////////////////////////// -void HandleNewConnection(void *ch) +void __cdecl HandleNewConnection(CLHttpUser *pclUser) { - CLHttpUser * pclUser = (CLHttpUser *)ch; pclUser->HandleNewConnection(); delete pclUser; } @@ -587,7 +586,7 @@ void ConnectionOpen(HNETLIBCONN hNewConnection, DWORD dwRemoteIP) stAddr.S_un.S_addr = htonl(dwRemoteIP); CLHttpUser *pclUser = new CLHttpUser(hNewConnection, stAddr); - mir_forkthread(HandleNewConnection, pclUser); + mir_forkThread(HandleNewConnection, pclUser); } ///////////////////////////////////////////////////////////////////// -- cgit v1.2.3