sys: FspFsvolCreatePrepare

This commit is contained in:
Bill Zissimopoulos
2015-12-04 11:17:56 -08:00
parent e0c47750d9
commit 3e4cfdd143
4 changed files with 76 additions and 27 deletions

View File

@ -65,6 +65,20 @@ VOID FspIopCompleteRequestEx(PIRP Irp, NTSTATUS Result, BOOLEAN DeviceRelease)
Irp->Tail.Overlay.DriverContext[0] = 0;
}
if (0 != Irp->Tail.Overlay.DriverContext[1])
{
#if DBG
NTSTATUS Result0;
Result0 = ObCloseHandle(Irp->Tail.Overlay.DriverContext[1], KernelMode);
if (!NT_SUCCESS(Result0))
DEBUGLOG("ObCloseHandle() = %s", NtStatusSym(Result0));
#else
ObCloseHandle(Irp->Tail.Overlay.DriverContext[1], KernelMode);
#endif
Irp->Tail.Overlay.DriverContext[1] = 0;
}
PDEVICE_OBJECT DeviceObject = IoGetCurrentIrpStackLocation(Irp)->DeviceObject;
if (!NT_SUCCESS(Result))