[FASTFAT]
authorPierre Schweitzer <pierre@reactos.org>
Tue, 29 Apr 2014 18:25:02 +0000 (18:25 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Tue, 29 Apr 2014 18:25:02 +0000 (18:25 +0000)
Properly handle files at root.

CORE-8125 #resolve

svn path=/trunk/; revision=63045

reactos/drivers/filesystems/fastfat/create.c

index 4124391..eb14acc 100644 (file)
@@ -584,7 +584,7 @@ VfatCreateFile(
             --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));