[NTOSKRNL]

Allow null matching with * wc in FsRtlIs*InExpression()
This should fix a few tests

svn path=/trunk/; revision=58790
This commit is contained in:
Pierre Schweitzer 2013-04-20 14:10:10 +00:00
parent 301f9552c0
commit 4dea595eca
2 changed files with 6 additions and 2 deletions

View file

@ -207,7 +207,9 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
NamePosition = Name->Length;
break;
}
else if (Expression->Buffer[ExpressionPosition] != '?')
/* Allow null matching */
else if (Expression->Buffer[ExpressionPosition] != '?' &&
Expression->Buffer[ExpressionPosition] != Name->Buffer[NamePosition])
{
NamePosition++;
}

View file

@ -143,7 +143,9 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
NamePosition = Name->Length / sizeof(WCHAR);
break;
}
else if (Expression->Buffer[ExpressionPosition] != L'?')
/* Allow null matching */
else if (Expression->Buffer[ExpressionPosition] != L'?' &&
Expression->Buffer[ExpressionPosition] != Name->Buffer[NamePosition])
{
NamePosition++;
}