mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[NTOSKRNL]
Properly handle when we are at last dot in FsRtlIs*InExpression with DOS_STAR svn path=/trunk/; revision=58842
This commit is contained in:
parent
df801f3d4c
commit
18fa2986fc
|
@ -237,6 +237,12 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
|
|||
}
|
||||
MatchingChars++;
|
||||
}
|
||||
|
||||
/* In case we were already at last dot, simply accept it */
|
||||
if (MatchingChars == Name->Length)
|
||||
{
|
||||
NamePosition++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -168,6 +168,12 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
|
|||
}
|
||||
MatchingChars++;
|
||||
}
|
||||
|
||||
/* In case we were already at last dot, simply accept it */
|
||||
if (MatchingChars == Name->Length / sizeof(WCHAR))
|
||||
{
|
||||
NamePosition++;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue