mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-25 01:42:24 -05:00
sys: static analysis fixes
This commit is contained in:
parent
d7e9a25d37
commit
15953ab6df
@ -115,13 +115,14 @@ NTSTATUS DriverEntry(
|
|||||||
FspFastIoDispatch.ReleaseForModWrite = FspReleaseForModWrite;
|
FspFastIoDispatch.ReleaseForModWrite = FspReleaseForModWrite;
|
||||||
FspFastIoDispatch.AcquireForCcFlush = FspAcquireForCcFlush;
|
FspFastIoDispatch.AcquireForCcFlush = FspAcquireForCcFlush;
|
||||||
FspFastIoDispatch.ReleaseForCcFlush = FspReleaseForCcFlush;
|
FspFastIoDispatch.ReleaseForCcFlush = FspReleaseForCcFlush;
|
||||||
#pragma prefast(suppress:28175, "We are a filesystem: ok to touch FastIoDispatch")
|
#pragma prefast(suppress:28175, "We are a filesystem: ok to access FastIoDispatch")
|
||||||
DriverObject->FastIoDispatch = &FspFastIoDispatch;
|
DriverObject->FastIoDispatch = &FspFastIoDispatch;
|
||||||
|
|
||||||
/* register our device objects as file systems */
|
/* register our device objects as file systems */
|
||||||
IoRegisterFileSystem(FspFsctlDiskDeviceObject);
|
IoRegisterFileSystem(FspFsctlDiskDeviceObject);
|
||||||
IoRegisterFileSystem(FspFsctlNetDeviceObject);
|
IoRegisterFileSystem(FspFsctlNetDeviceObject);
|
||||||
|
|
||||||
|
#pragma prefast(suppress:28175, "We are in DriverEntry: ok to access DriverName")
|
||||||
FSP_LEAVE("DriverName=\"%wZ\", RegistryPath=\"%wZ\"",
|
FSP_LEAVE("DriverName=\"%wZ\", RegistryPath=\"%wZ\"",
|
||||||
&DriverObject->DriverName, RegistryPath);
|
&DriverObject->DriverName, RegistryPath);
|
||||||
}
|
}
|
||||||
@ -142,6 +143,7 @@ VOID FspUnload(
|
|||||||
FspFsctlNetDeviceObject = 0;
|
FspFsctlNetDeviceObject = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma prefast(suppress:28175, "We are in DriverUnload: ok to access DriverName")
|
||||||
FSP_LEAVE_VOID("DriverName=\"%wZ\"",
|
FSP_LEAVE_VOID("DriverName=\"%wZ\"",
|
||||||
&DriverObject->DriverName);
|
&DriverObject->DriverName);
|
||||||
}
|
}
|
||||||
|
@ -182,7 +182,7 @@ _Dispatch_type_(IRP_MJ_SET_VOLUME_INFORMATION) FSP_DRIVER_DISPATCH FspSetVolumeI
|
|||||||
_Dispatch_type_(IRP_MJ_SHUTDOWN) FSP_DRIVER_DISPATCH FspShutdown;
|
_Dispatch_type_(IRP_MJ_SHUTDOWN) FSP_DRIVER_DISPATCH FspShutdown;
|
||||||
_Dispatch_type_(IRP_MJ_WRITE) FSP_DRIVER_DISPATCH FspWrite;
|
_Dispatch_type_(IRP_MJ_WRITE) FSP_DRIVER_DISPATCH FspWrite;
|
||||||
|
|
||||||
/* I/O completion functions */
|
/* I/O process functions */
|
||||||
_IRQL_requires_max_(APC_LEVEL)
|
_IRQL_requires_max_(APC_LEVEL)
|
||||||
_IRQL_requires_same_
|
_IRQL_requires_same_
|
||||||
typedef VOID FSP_IOPROC_DISPATCH(
|
typedef VOID FSP_IOPROC_DISPATCH(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user