mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
sys: fix a couple of static analysis issues
This commit is contained in:
parent
c246acb2d3
commit
441c45c77f
@ -178,6 +178,7 @@ static VOID FspDriverMultiVersionInitialize(VOID)
|
||||
{
|
||||
FspProcessorCount = KeQueryActiveProcessorCount(0);
|
||||
|
||||
#pragma prefast(suppress:30035, "FspDriverMultiVersionInitialize is called from DriverEntry")
|
||||
ExInitializeDriverRuntime(DrvRtPoolNxOptIn);
|
||||
|
||||
if (RtlIsNtDdiVersionAvailable(NTDDI_WIN7))
|
||||
|
@ -2117,6 +2117,8 @@ NTSTATUS FspFileDescResetDirectory(FSP_FILE_DESC *FileDesc,
|
||||
NTSTATUS FspFileDescSetDirectoryMarker(FSP_FILE_DESC *FileDesc,
|
||||
PUNICODE_STRING FileName)
|
||||
{
|
||||
PAGED_CODE();
|
||||
|
||||
if (&FileDesc->DirectoryMarker == FileName)
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
|
@ -29,6 +29,8 @@ NTSTATUS FspStatisticsCopy(FSP_STATISTICS *Statistics, PVOID Buffer, PULONG PLen
|
||||
|
||||
NTSTATUS FspStatisticsCreate(FSP_STATISTICS **PStatistics)
|
||||
{
|
||||
PAGED_CODE();
|
||||
|
||||
*PStatistics = FspAllocNonPaged(sizeof(FSP_STATISTICS) * FspProcessorCount);
|
||||
if (0 == *PStatistics)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
@ -49,11 +51,15 @@ NTSTATUS FspStatisticsCreate(FSP_STATISTICS **PStatistics)
|
||||
|
||||
VOID FspStatisticsDelete(FSP_STATISTICS *Statistics)
|
||||
{
|
||||
PAGED_CODE();
|
||||
|
||||
FspFree(Statistics);
|
||||
}
|
||||
|
||||
NTSTATUS FspStatisticsCopy(FSP_STATISTICS *Statistics, PVOID Buffer, PULONG PLength)
|
||||
{
|
||||
PAGED_CODE();
|
||||
|
||||
NTSTATUS Result;
|
||||
ULONG StatLength;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user