mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +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);
|
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. */
|
/* Try opening the file. */
|
||||||
if (!OpenTargetDir)
|
if (!OpenTargetDir)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue