[MSAFD] Properly define SockAsyncThread() and avoid the cast. CORE-11799 (#94)

This commit is contained in:
Amine Khaldi 2017-10-27 23:47:30 +01:00
parent 511ad21fae
commit 5a14845970
2 changed files with 7 additions and 3 deletions

View file

@ -3524,7 +3524,7 @@ BOOLEAN SockCreateOrReferenceAsyncThread(VOID)
/* Create the Async Thread */
hAsyncThread = CreateThread(NULL,
0,
(LPTHREAD_START_ROUTINE)SockAsyncThread,
SockAsyncThread,
NULL,
0,
&AsyncThreadId);
@ -3537,7 +3537,9 @@ BOOLEAN SockCreateOrReferenceAsyncThread(VOID)
return TRUE;
}
int SockAsyncThread(PVOID ThreadParam)
ULONG
NTAPI
SockAsyncThread(PVOID ThreadParam)
{
PVOID AsyncContext;
PASYNC_COMPLETION_ROUTINE AsyncCompletionRoutine;

View file

@ -454,7 +454,9 @@ int CreateContext(
PSOCKET_INFORMATION Socket
);
int SockAsyncThread(
ULONG
NTAPI
SockAsyncThread(
PVOID ThreadParam
);