git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update for HEAD-2002110701
[reactos.git]
/
ntoskrnl
/
io
/
create.c
diff --git
a/ntoskrnl/io/create.c
b/ntoskrnl/io/create.c
index
e2a0400
..
4d02162
100644
(file)
--- a/
ntoskrnl/io/create.c
+++ b/
ntoskrnl/io/create.c
@@
-432,6
+432,9
@@
IoCreateFile(OUT PHANDLE FileHandle,
if (!NT_SUCCESS(Status))
{
DPRINT("Failing create request with status %x\n", Status);
+ FileObject->DeviceObject = NULL;
+ FileObject->Vpb = NULL;
+
ZwClose(*FileHandle);
}
if (IoStatusBlock)