Author: pschweitzer
Date: Tue Apr 29 18:25:02 2014
New Revision: 63045
URL:
http://svn.reactos.org/svn/reactos?rev=63045&view=rev
Log:
[FASTFAT]
Properly handle files at root.
CORE-8125 #resolve
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] Tue Apr 29 18:25:02
2014
@@ -584,7 +584,7 @@
--idx;
}
- if (idx > 0)
+ if (idx > 0 || PathNameU.Buffer[0] == L'\\')
{
/* We don't want to include / in the name */
FileNameLen = PathNameU.Length - ((idx + 1) * sizeof(WCHAR));