Author: pschweitzer
Date: Fri Mar 7 20:30:29 2014
New Revision: 62446
URL:
http://svn.reactos.org/svn/reactos?rev=62446&view=rev
Log:
[FASTFAT]
Properly handle directories when notifying the kernel about creation.
This makes the MS test application fully passing on ReactOS.
You can find it at:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365261%28v=vs.85%…
CORE-2582
Modified:
trunk/reactos/drivers/filesystems/fastfat/create.c
Modified: trunk/reactos/drivers/filesystems/fastfat/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Fri Mar 7 20:30:29
2014
@@ -762,7 +762,8 @@
pFcb->PathNameU.Length -
pFcb->LongNameU.Length,
NULL,
NULL,
- FILE_NOTIFY_CHANGE_FILE_NAME,
+ ((*pFcb->Attributes &
FILE_ATTRIBUTE_DIRECTORY) ?
+ FILE_NOTIFY_CHANGE_DIR_NAME :
FILE_NOTIFY_CHANGE_FILE_NAME),
FILE_ACTION_ADDED,
NULL);
}