Initialized the event with the object instead of the handle.

svn path=/trunk/; revision=14465
This commit is contained in:
Hartmut Birr 2005-04-03 10:05:00 +00:00
parent e56e6b57c7
commit 32fce0a991

View file

@ -130,7 +130,7 @@ NtReadFile (IN HANDLE FileHandle,
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 @@ NtWriteFile (IN HANDLE FileHandle,
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 */