dll: dotnet: revert the Delete redesign

This commit is contained in:
Bill Zissimopoulos
2021-11-22 13:55:32 +00:00
parent a9d90acd71
commit 826a514fe3
6 changed files with 54 additions and 177 deletions

View File

@ -1001,20 +1001,11 @@ FSP_API NTSTATUS FspFileSystemOpCleanup(FSP_FILE_SYSTEM *FileSystem,
if (Request->Req.Cleanup.Delete && 0 != FileSystem->Interface->Delete)
{
NTSTATUS Result = FileSystem->Interface->Delete(FileSystem,
FileSystem->Interface->Delete(FileSystem,
(PVOID)ValOfFileContext(Request->Req.Cleanup),
0 != Request->FileName.Size ? (PWSTR)Request->Buffer : 0,
(ULONG)-1);
/*
* If Delete returns STATUS_NOT_IMPLEMENTED it means that it is unable
* to handle file deletion during the Cleanup phase. In this case we
* will handle file deletion in Cleanup with the FspCleanupDelete flag.
*
* This is necessary for file systems like the .NET layer where Delete
* may be implemented but unable to handle all file deletion cases.
*/
if (STATUS_NOT_IMPLEMENTED != Result)
CleanupFlags &= ~FspCleanupDelete;
CleanupFlags &= ~FspCleanupDelete;
}
if (0 != FileSystem->Interface->Cleanup)