mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Don't pass a timeout (which wasn't initialized btw), just hang around forever
- Call completion routine svn path=/trunk/; revision=12277
This commit is contained in:
parent
ea8bd9a5d2
commit
67cde50ddc
1 changed files with 2 additions and 3 deletions
|
@ -1609,7 +1609,6 @@ int SockAsyncThread(PVOID ThreadParam)
|
||||||
PASYNC_COMPLETION_ROUTINE AsyncCompletionRoutine;
|
PASYNC_COMPLETION_ROUTINE AsyncCompletionRoutine;
|
||||||
IO_STATUS_BLOCK IOSB;
|
IO_STATUS_BLOCK IOSB;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
LARGE_INTEGER Timeout;
|
|
||||||
|
|
||||||
/* Make the Thread Higher Priority */
|
/* Make the Thread Higher Priority */
|
||||||
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
|
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
|
||||||
|
@ -1620,11 +1619,11 @@ int SockAsyncThread(PVOID ThreadParam)
|
||||||
(PVOID*)&AsyncCompletionRoutine,
|
(PVOID*)&AsyncCompletionRoutine,
|
||||||
&AsyncContext,
|
&AsyncContext,
|
||||||
&IOSB,
|
&IOSB,
|
||||||
&Timeout);
|
NULL);
|
||||||
|
|
||||||
/* Call the Async Function */
|
/* Call the Async Function */
|
||||||
if (NT_SUCCESS(Status)) {
|
if (NT_SUCCESS(Status)) {
|
||||||
//(*AsyncCompletionRoutine)(AsyncContext, IOSB);
|
(*AsyncCompletionRoutine)(AsyncContext, &IOSB);
|
||||||
} else {
|
} else {
|
||||||
/* It Failed, sleep for a second */
|
/* It Failed, sleep for a second */
|
||||||
Sleep(1000);
|
Sleep(1000);
|
||||||
|
|
Loading…
Reference in a new issue