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 628267d374..3490f07599 100644
--- a/plugins/HTTPServer/src/main.cpp
+++ b/plugins/HTTPServer/src/main.cpp
@@ -591,11 +591,10 @@ void ConnectionOpen(HANDLE hNewConnection, DWORD dwRemoteIP)
in_addr stAddr;
stAddr.S_un.S_addr = htonl(dwRemoteIP);
- CLHttpUser * pclUser = new CLHttpUser(hNewConnection, stAddr);
- forkthread(HandleNewConnection, 0, (void*)pclUser);
+ CLHttpUser *pclUser = new CLHttpUser(hNewConnection, stAddr);
+ mir_forkthread(HandleNewConnection, pclUser);
}
-
/////////////////////////////////////////////////////////////////////
// Member Function : nProtoAck
// Type : Global