summaryrefslogtreecommitdiff
path: root/plugins/HTTPServer/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HTTPServer/src/main.cpp')
-rw-r--r--plugins/HTTPServer/src/main.cpp5
1 files changed, 2 insertions, 3 deletions
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<CLHttpUser>(HandleNewConnection, pclUser);
}
/////////////////////////////////////////////////////////////////////