https://git.reactos.org/?p=reactos.git;a=commitdiff;h=207ff9444e946e3736f34…
commit 207ff9444e946e3736f34ef6eaf32ab065cf8ca9
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat Sep 29 11:21:19 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat Sep 29 11:22:22 2018 +0200
[NTOSKRNL] Reference the file object before issuing the unlock all IRP
This fixes the last kmode assert triggered by httpd on ReactOS.
CORE-12045
---
ntoskrnl/io/iomgr/file.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ntoskrnl/io/iomgr/file.c b/ntoskrnl/io/iomgr/file.c
index 8e3b626cdf..e7633a331f 100644
--- a/ntoskrnl/io/iomgr/file.c
+++ b/ntoskrnl/io/iomgr/file.c
@@ -1985,6 +1985,7 @@ IopCloseFile(IN PEPROCESS Process OPTIONAL,
Irp->RequestorMode = KernelMode;
Irp->Flags = IRP_SYNCHRONOUS_API;
Irp->Overlay.AsynchronousParameters.UserApcRoutine = NULL;
+ ObReferenceObject(FileObject);
/* Set up Stack Pointer Data */
StackPtr = IoGetNextIrpStackLocation(Irp);