- Don't pass a timeout (which wasn't initialized btw), just hang around forever
authorGé van Geldorp <ge@gse.nl>
Tue, 21 Dec 2004 18:38:49 +0000 (18:38 +0000)
committerGé van Geldorp <ge@gse.nl>
Tue, 21 Dec 2004 18:38:49 +0000 (18:38 +0000)
- Call completion routine

svn path=/trunk/; revision=12277

reactos/lib/msafd/misc/dllmain.c

index 8fcf0ba..9e9213d 100644 (file)
@@ -1609,7 +1609,6 @@ int SockAsyncThread(PVOID ThreadParam)
        PASYNC_COMPLETION_ROUTINE AsyncCompletionRoutine;
        IO_STATUS_BLOCK IOSB;
        NTSTATUS Status;
-       LARGE_INTEGER Timeout;
                           
        /* Make the Thread Higher Priority */
        SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
@@ -1620,11 +1619,11 @@ int SockAsyncThread(PVOID ThreadParam)
                                                (PVOID*)&AsyncCompletionRoutine,
                                                &AsyncContext,
                                                &IOSB,
-                                               &Timeout);
+                                               NULL);
                                                
                /* Call the Async Function */
                if (NT_SUCCESS(Status)) {
-                       //(*AsyncCompletionRoutine)(AsyncContext, IOSB);
+                       (*AsyncCompletionRoutine)(AsyncContext, &IOSB);
                } else {
                        /* It Failed, sleep for a second */
                        Sleep(1000);