mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-08 04:52:10 -05:00
sys: FspIopCompleteIrpEx:
- only update statistics if we actually have a reference to the DeviceObject
This commit is contained in:
parent
c9485ff214
commit
8f25dd6cab
@ -287,6 +287,9 @@ VOID FspIopCompleteIrpEx(PIRP Irp, NTSTATUS Result, BOOLEAN DeviceDereference)
|
||||
* We update the Create statistics here to avoid doing it in multiple places.
|
||||
*/
|
||||
if (IRP_MJ_CREATE == IrpSp->MajorFunction)
|
||||
{
|
||||
/* only update statistics if we actually have a reference to the DeviceObject */
|
||||
if (DeviceDereference)
|
||||
{
|
||||
FSP_DEVICE_EXTENSION *DeviceExtension = FspDeviceExtension(DeviceObject);
|
||||
|
||||
@ -302,6 +305,7 @@ VOID FspIopCompleteIrpEx(PIRP Irp, NTSTATUS Result, BOOLEAN DeviceDereference)
|
||||
FspStatisticsInc(Statistics, Specific.FailedCreates);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
/*
|
||||
* HACK:
|
||||
|
Loading…
x
Reference in New Issue
Block a user