mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 00:43:00 -05:00
sys: fix some prefast suggestions
This commit is contained in:
parent
430f47945d
commit
220208cf87
@ -206,6 +206,7 @@ VOID FspDeviceDelete(PDEVICE_OBJECT DeviceObject)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if DBG
|
#if DBG
|
||||||
|
#pragma prefast(suppress:28175, "Debugging only: ok to access DeviceObject->Size")
|
||||||
RtlFillMemory(&DeviceExtension->Kind,
|
RtlFillMemory(&DeviceExtension->Kind,
|
||||||
(PUINT8)DeviceObject + DeviceObject->Size - (PUINT8)&DeviceExtension->Kind, 0xBD);
|
(PUINT8)DeviceObject + DeviceObject->Size - (PUINT8)&DeviceExtension->Kind, 0xBD);
|
||||||
#endif
|
#endif
|
||||||
|
@ -793,6 +793,7 @@ NTSTATUS FspSafeMdlCreate(PMDL UserMdl, LOCK_OPERATION Operation, FSP_SAFE_MDL *
|
|||||||
Result = STATUS_INSUFFICIENT_RESOURCES;
|
Result = STATUS_INSUFFICIENT_RESOURCES;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
#pragma prefast(suppress:28145, "We are a filesystem: ok to access MdlFlags")
|
||||||
SafeMdl->Mdl->MdlFlags |= MDL_PAGES_LOCKED;
|
SafeMdl->Mdl->MdlFlags |= MDL_PAGES_LOCKED;
|
||||||
UserPfnArray = MmGetMdlPfnArray(UserMdl);
|
UserPfnArray = MmGetMdlPfnArray(UserMdl);
|
||||||
SafePfnArray = MmGetMdlPfnArray(SafeMdl->Mdl);
|
SafePfnArray = MmGetMdlPfnArray(SafeMdl->Mdl);
|
||||||
|
@ -23,7 +23,6 @@ FSP_DRIVER_DISPATCH FspWrite;
|
|||||||
#ifdef ALLOC_PRAGMA
|
#ifdef ALLOC_PRAGMA
|
||||||
#pragma alloc_text(PAGE, FspFsvolWrite)
|
#pragma alloc_text(PAGE, FspFsvolWrite)
|
||||||
#pragma alloc_text(PAGE, FspFsvolWriteCached)
|
#pragma alloc_text(PAGE, FspFsvolWriteCached)
|
||||||
#pragma alloc_text(PAGE, FspFsvolWriteCachedDeferred)
|
|
||||||
#pragma alloc_text(PAGE, FspFsvolWriteNonCached)
|
#pragma alloc_text(PAGE, FspFsvolWriteNonCached)
|
||||||
#pragma alloc_text(PAGE, FspFsvolWritePrepare)
|
#pragma alloc_text(PAGE, FspFsvolWritePrepare)
|
||||||
#pragma alloc_text(PAGE, FspFsvolWriteComplete)
|
#pragma alloc_text(PAGE, FspFsvolWriteComplete)
|
||||||
@ -235,6 +234,8 @@ cleanup:
|
|||||||
|
|
||||||
static VOID FspFsvolWriteCachedDeferred(PVOID Context1, PVOID Context2)
|
static VOID FspFsvolWriteCachedDeferred(PVOID Context1, PVOID Context2)
|
||||||
{
|
{
|
||||||
|
// !PAGED_CODE();
|
||||||
|
|
||||||
FspWqPostIrpWorkItem(Context1);
|
FspWqPostIrpWorkItem(Context1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user