mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user