mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Fixed synchronous I/O bug in ZwWriteFile
svn path=/trunk/; revision=74
This commit is contained in:
parent
74ff8524ad
commit
dc5f3e0195
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,7 @@ NTSTATUS ZwReadFile(HANDLE FileHandle,
|
|||
|
||||
DPRINT("FileObject->DeviceObject %x\n",FileObject->DeviceObject);
|
||||
Status = IoCallDriver(FileObject->DeviceObject,Irp);
|
||||
if (Status == STATUS_PENDING)
|
||||
if (Status == STATUS_PENDING && (FileObject->Flags & FO_SYNCHRONOUS_IO))
|
||||
{
|
||||
KeWaitForSingleObject(&Event,Executive,KernelMode,FALSE,NULL);
|
||||
Status = Irp->IoStatus.Status;
|
||||
|
@ -198,6 +198,7 @@ NTSTATUS ZwWriteFile(HANDLE FileHandle,
|
|||
KeWaitForSingleObject(&Event,Executive,KernelMode,FALSE,NULL);
|
||||
Status = Irp->IoStatus.Status;
|
||||
}
|
||||
|
||||
return(Status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue