Peter Oberndorfer : rpcss: Use correct prototype for thread function.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri May 11 07:27:58 CDT 2007
Module: wine
Branch: master
Commit: 3a1a190fc3f8225a8028919e0667e2b673421e9e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a1a190fc3f8225a8028919e0667e2b673421e9e
Author: Peter Oberndorfer <kumbayo84 at arcor.de>
Date: Thu May 10 20:55:31 2007 +0200
rpcss: Use correct prototype for thread function.
---
programs/rpcss/np_server.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/programs/rpcss/np_server.c b/programs/rpcss/np_server.c
index bcb151e..3d62245 100644
--- a/programs/rpcss/np_server.c
+++ b/programs/rpcss/np_server.c
@@ -163,7 +163,7 @@ static void RPCSS_ServerProcessMessage(PRPCSS_NP_MESSAGE pMsg, PRPCSS_NP_REPLY p
}
/* each message gets its own thread. this is it. */
-static VOID HandlerThread(LPVOID lpvPipeHandle)
+static DWORD WINAPI HandlerThread(LPVOID lpvPipeHandle)
{
RPCSS_NP_MESSAGE msg, vardata_payload_msg;
char *c, *vardata = NULL;
@@ -247,9 +247,10 @@ static VOID HandlerThread(LPVOID lpvPipeHandle)
DisconnectNamedPipe(mypipe);
CloseHandle(mypipe);
InterlockedDecrement(&srv_thread_count);
+ return 0;
}
-static VOID NPMainWorkThread(LPVOID ignored)
+static DWORD WINAPI NPMainWorkThread(LPVOID ignored)
{
BOOL connected;
HANDLE hthread, master_mutex = RPCSS_GetMasterMutex();
@@ -272,7 +273,7 @@ static VOID NPMainWorkThread(LPVOID ignored)
hthread = CreateThread(
NULL, /* no security attribute */
0, /* default stack size */
- (LPTHREAD_START_ROUTINE) HandlerThread,
+ HandlerThread,
(LPVOID) np_server_end, /* thread parameter */
0, /* not suspended */
&threadid /* returns thread ID (not used) */
@@ -330,6 +331,7 @@ static VOID NPMainWorkThread(LPVOID ignored)
}
}
WINE_TRACE("Server thread shutdown.\n");
+ return 0;
}
static HANDLE RPCSS_NPConnect(void)
@@ -514,7 +516,7 @@ BOOL RPCSS_BecomePipeServer(void)
hthread = CreateThread(
NULL, /* no security attribute */
0, /* default stack size */
- (LPTHREAD_START_ROUTINE) NPMainWorkThread,
+ NPMainWorkThread,
NULL, /* thread parameter */
0, /* not suspended */
&threadid /* returns thread ID (not used) */
More information about the wine-cvs
mailing list