[NTOSKRNL] Reference the file object before issuing the unlock all IRP

This fixes the last kmode assert triggered by httpd on ReactOS.

CORE-12045
This commit is contained in:
Pierre Schweitzer
2018-09-29 11:21:19 +02:00
parent f155de483f
commit 207ff9444e

View File

@@ -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);