Initialized the event with the object instead of the handle.
Modified: trunk/reactos/ntoskrnl/io/rw.c
_____
Modified: trunk/reactos/ntoskrnl/io/rw.c
--- trunk/reactos/ntoskrnl/io/rw.c 2005-04-03 09:16:20 UTC (rev
14464)
+++ trunk/reactos/ntoskrnl/io/rw.c 2005-04-03 10:05:00 UTC (rev
14465)
@@ -130,7 +130,7 @@
return NT_SUCCESS(Status) ? STATUS_INSUFFICIENT_RESOURCES :
Status;
}
- Irp->UserEvent = Event;
+ Irp->UserEvent = EventObject;
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
{
/* synchronous irp's are queued to requestor thread's irp
cancel/cleanup list */
@@ -310,7 +310,7 @@
return NT_SUCCESS(Status) ? STATUS_INSUFFICIENT_RESOURCES :
Status;
}
- Irp->UserEvent = Event;
+ Irp->UserEvent = EventObject;
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
{
/* synchronous irp's are queued to requestor thread's irp
cancel/cleanup list */
Show replies by date