[NTOSKRNL]

Fix null matching for empty string in FsRtlIsDbcsInExpression()

svn path=/trunk/; revision=58840
This commit is contained in:
Pierre Schweitzer 2013-04-24 12:18:28 +00:00
parent 4204d81772
commit 8f3328160c

View file

@ -170,6 +170,11 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
ASSERT(Expression->Length);
ASSERT(!FsRtlDoesDbcsContainWildCards(Name));
if (Name->Length == 0)
{
return (Expression->Length == 0);
}
while (NamePosition < Name->Length && ExpressionPosition < Expression->Length)
{
/* Basic check to test if chars are equal */