mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[FASTFAT]
- Handle multiple trailing backslashes without asserting CORE-10483 svn path=/trunk/; revision=70214
This commit is contained in:
parent
e7830d5ae9
commit
51c131bcb5
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue