[FASTFAT]

- Handle multiple trailing backslashes without asserting
CORE-10483

svn path=/trunk/; revision=70214
This commit is contained in:
Thomas Faber 2015-11-29 20:23:43 +00:00
parent e7830d5ae9
commit 51c131bcb5

View file

@ -597,6 +597,11 @@ VfatCreateFile(
PathNameU.Length -= sizeof(WCHAR);
}
if (PathNameU.Length > sizeof(WCHAR) && PathNameU.Buffer[PathNameU.Length/sizeof(WCHAR)-1] == L'\\')
{
return STATUS_OBJECT_NAME_INVALID;
}
/* Try opening the file. */
if (!OpenTargetDir)
{