summaryrefslogtreecommitdiff
path: root/plugins/CmdLine/src/services.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-11 14:28:21 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-11 14:28:21 +0000
commitd978a71c913c7213158d7014e43fe6535c60dcc9 (patch)
tree685053df83a3eca4ff36c49547d891e7936cd114 /plugins/CmdLine/src/services.cpp
parent7b2f41b2571dbc15abb77b5462b14473eabafcb2 (diff)
minus CreateThread
git-svn-id: http://svn.miranda-ng.org/main/trunk@13533 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CmdLine/src/services.cpp')
-rw-r--r--plugins/CmdLine/src/services.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/CmdLine/src/services.cpp b/plugins/CmdLine/src/services.cpp
index 9e006a0046..6a82974be5 100644
--- a/plugins/CmdLine/src/services.cpp
+++ b/plugins/CmdLine/src/services.cpp
@@ -37,7 +37,7 @@ extern "C" __declspec(dllexport) void ProcessConsoleCommand(PCommand command, TA
HandleCommand(command, arguments, count, reply);
}
-DWORD WINAPI ServerWorkerThread(void *data)
+void __cdecl ServerWorkerThread(void *data)
{
int done = FALSE;
const HANDLE events[] = {heServerExec, heServerClose};
@@ -63,8 +63,6 @@ DWORD WINAPI ServerWorkerThread(void *data)
}
}
}
-
- return 0;
}
int StartServer()
@@ -74,8 +72,7 @@ int StartServer()
{
if (sdCmdLine->instances == 0)
{
- DWORD threadID;
- HANDLE server = CreateThread(NULL, NULL, ServerWorkerThread, NULL, 0, &threadID);
+ HANDLE server = mir_forkthread(ServerWorkerThread, 0);
if (server)
{
char path[MIMFOLDER_SIZE];