mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 15:38:37 +00:00
[NTOSKRNL]
Fix null matching for empty string in FsRtlIsDbcsInExpression() svn path=/trunk/; revision=58840
This commit is contained in:
parent
4204d81772
commit
8f3328160c
1 changed files with 5 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue