mirror of
https://github.com/reactos/reactos.git
synced 2026-06-05 19:43:39 +08:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user