mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
sys: IRP_MJ_SET_INFORMATION: FileDispositionInformation
This commit is contained in:
parent
320fa3cf56
commit
dc77a1109f
@ -597,6 +597,13 @@ static NTSTATUS FspFsvolSetDispositionInformation(PFILE_OBJECT FileObject,
|
||||
if (0 == Response)
|
||||
{
|
||||
PFILE_DISPOSITION_INFORMATION Info = (PFILE_DISPOSITION_INFORMATION)Buffer;
|
||||
BOOLEAN Success;
|
||||
|
||||
/* make sure no process is mapping the file as an image */
|
||||
Success = MmFlushImageSection(FileObject->SectionObjectPointer,
|
||||
MmFlushForDelete);
|
||||
if (!Success)
|
||||
return STATUS_CANNOT_DELETE;
|
||||
|
||||
Request->Req.SetInformation.Info.Disposition.Delete = Info->DeleteFile;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user