From 9dbda7a1ea9d0ac91e02bf4e605618203faf83bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 11 Nov 2015 15:06:35 +0000 Subject: thread library: - _beginthread replaced with CreateThread(); - functions forkthread & forkthreadex removed; - macroses mir_forkthread, mir_forkthreadex & mir_forkthreadowner became real functions; git-svn-id: http://svn.miranda-ng.org/main/trunk@15710 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HTTPServer/src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/HTTPServer') 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 -- cgit v1.2.3