mirror of
https://github.com/winfsp/winfsp.git
synced 2026-10-15 09:09:53 -05:00
sys: FspIopCompleteIrpEx:
- only update statistics if we actually have a reference to the DeviceObject
This commit is contained in:
1 parent
c9485ff214
commit
8f25dd6cab
1 file changed
+4
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user