diff --git a/reactos/ntoskrnl/io/create.c b/reactos/ntoskrnl/io/create.c index 3e3aef4248f..cd70ab3db29 100644 --- a/reactos/ntoskrnl/io/create.c +++ b/reactos/ntoskrnl/io/create.c @@ -209,6 +209,8 @@ NTSTATUS ZwCreateFile(PHANDLE FileHandle, StackLoc->Control = 0; StackLoc->DeviceObject = DeviceObject; StackLoc->FileObject=FileObject; + StackLoc->Parameters.Create.Options=CreateOptions&FILE_VALID_OPTION_FLAGS; + StackLoc->Parameters.Create.Options|=CreateDisposition<<24; Status = IoCallDriver(DeviceObject,Irp); if (Status==STATUS_PENDING) {