mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Initialized the event with the object instead of the handle.
svn path=/trunk/; revision=14465
This commit is contained in:
parent
e56e6b57c7
commit
32fce0a991
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ NtReadFile (IN HANDLE FileHandle,
|
||||||
return NT_SUCCESS(Status) ? STATUS_INSUFFICIENT_RESOURCES : Status;
|
return NT_SUCCESS(Status) ? STATUS_INSUFFICIENT_RESOURCES : Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
Irp->UserEvent = Event;
|
Irp->UserEvent = EventObject;
|
||||||
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
||||||
{
|
{
|
||||||
/* synchronous irp's are queued to requestor thread's irp cancel/cleanup list */
|
/* 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;
|
return NT_SUCCESS(Status) ? STATUS_INSUFFICIENT_RESOURCES : Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
Irp->UserEvent = Event;
|
Irp->UserEvent = EventObject;
|
||||||
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
||||||
{
|
{
|
||||||
/* synchronous irp's are queued to requestor thread's irp cancel/cleanup list */
|
/* synchronous irp's are queued to requestor thread's irp cancel/cleanup list */
|
||||||
|
|
Loading…
Reference in a new issue