From: Eric Kohl Date: Fri, 18 Apr 2014 12:07:55 +0000 (+0000) Subject: [FASTFAT] X-Git-Tag: backups/0.3.17@66124~1715 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=15ceab25f8215f7f431674bec2f9ed74e15badb2 [FASTFAT] Add file and directory removal notification. svn path=/trunk/; revision=62772 --- diff --git a/reactos/drivers/filesystems/fastfat/close.c b/reactos/drivers/filesystems/fastfat/close.c index 78f016f7d6e..007c3c5f444 100644 --- a/reactos/drivers/filesystems/fastfat/close.c +++ b/reactos/drivers/filesystems/fastfat/close.c @@ -28,7 +28,7 @@ VfatCloseFile( NTSTATUS Status = STATUS_SUCCESS; DPRINT("VfatCloseFile(DeviceExt %p, FileObject %p)\n", - DeviceExt, FileObject); + DeviceExt, FileObject); /* FIXME : update entry in directory? */ pCcb = (PVFATCCB) (FileObject->FsContext2); @@ -52,6 +52,17 @@ VfatCloseFile( if (pFcb->Flags & FCB_DELETE_PENDING) { VfatDelEntry(DeviceExt, pFcb); + + FsRtlNotifyFullReportChange(DeviceExt->NotifySync, + &(DeviceExt->NotifyList), + (PSTRING)&pFcb->PathNameU, + pFcb->PathNameU.Length - pFcb->LongNameU.Length, + NULL, + NULL, + ((*pFcb->Attributes & FILE_ATTRIBUTE_DIRECTORY) ? + FILE_NOTIFY_CHANGE_DIR_NAME : FILE_NOTIFY_CHANGE_FILE_NAME), + FILE_ACTION_REMOVED, + NULL); } else {