[NTOSKRNL]

FsRtlIsDbcsInExpression/FsRtlIsNameInExpression: in case there are contigous stars in the expression, skip all the stars up to the last one and only consider the last one.
This fixes the failing tests.

svn path=/trunk/; revision=56143
This commit is contained in:
Pierre Schweitzer 2012-03-13 22:03:30 +00:00
parent 3f4382482e
commit ce02953a73
2 changed files with 12 additions and 0 deletions

View file

@ -187,6 +187,12 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
/* Test star */
else if (Expression->Buffer[ExpressionPosition] == '*')
{
/* Skip contigous stars */
while (ExpressionPosition + 1 < Expression->Length && Expression->Buffer[ExpressionPosition + 1] == '*')
{
ExpressionPosition++;
}
/* Save star position */
if (!BackTracking)
{

View file

@ -117,6 +117,12 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
/* Test star */
else if (Expression->Buffer[ExpressionPosition] == L'*')
{
/* Skip contigous stars */
while (ExpressionPosition + 1 < Expression->Length / sizeof(WCHAR) && Expression->Buffer[ExpressionPosition + 1] == '*')
{
ExpressionPosition++;
}
/* Save star position */
if (!BackTracking)
{