Author: cgutman
Date: Fri Mar 27 07:10:10 2009
New Revision: 40260
URL:
http://svn.reactos.org/svn/reactos?rev=40260&view=rev
Log:
- Wait on the correct event
Modified:
trunk/reactos/dll/win32/msafd/misc/sndrcv.c
Modified: trunk/reactos/dll/win32/msafd/misc/sndrcv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/sndrc…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/sndrcv.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/sndrcv.c [iso-8859-1] Fri Mar 27 07:10:10 2009
@@ -98,7 +98,7 @@
NTSTATUS Status;
PVOID APCContext;
PVOID APCFunction;
- HANDLE Event;
+ HANDLE Event = NULL;
HANDLE SockEvent;
PSOCKET_INFORMATION Socket;
@@ -180,7 +180,7 @@
/* Send IOCTL */
Status = NtDeviceIoControlFile((HANDLE)Handle,
- SockEvent,
+ Event ? Event : SockEvent,
APCFunction,
APCContext,
IOSB,
@@ -253,7 +253,7 @@
NTSTATUS Status;
PVOID APCContext;
PVOID APCFunction;
- HANDLE Event;
+ HANDLE Event = NULL;
HANDLE SockEvent;
PSOCKET_INFORMATION Socket;
@@ -336,7 +336,7 @@
/* Send IOCTL */
Status = NtDeviceIoControlFile((HANDLE)Handle,
- SockEvent,
+ Event ? Event : SockEvent,
APCFunction,
APCContext,
IOSB,
@@ -395,7 +395,7 @@
NTSTATUS Status;
PVOID APCContext;
PVOID APCFunction;
- HANDLE Event;
+ HANDLE Event = NULL;
HANDLE SockEvent;
PSOCKET_INFORMATION Socket;
@@ -463,7 +463,7 @@
/* Send IOCTL */
Status = NtDeviceIoControlFile((HANDLE)Handle,
- SockEvent,
+ Event ? Event : SockEvent,
APCFunction,
APCContext,
IOSB,
@@ -516,7 +516,7 @@
NTSTATUS Status;
PVOID APCContext;
PVOID APCFunction;
- HANDLE Event;
+ HANDLE Event = NULL;
PTRANSPORT_ADDRESS RemoteAddress;
UCHAR TdiBuffer[0x16];
PSOCKADDR BindAddress;
@@ -593,7 +593,7 @@
/* Send IOCTL */
Status = NtDeviceIoControlFile((HANDLE)Handle,
- SockEvent,
+ Event ? Event : SockEvent,
APCFunction,
APCContext,
IOSB,