[FASTFAT]

Properly handle files at root.

CORE-8125 #resolve

svn path=/trunk/; revision=63045
This commit is contained in:
Pierre Schweitzer 2014-04-29 18:25:02 +00:00
parent 6a1f297a19
commit 4d286e5a49

View 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));