[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:
Pierre Schweitzer 2013-04-24 15:25:19 +00:00
parent df801f3d4c
commit 18fa2986fc
2 changed files with 12 additions and 0 deletions

View file

@ -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
{

View file

@ -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
{