mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +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(Expression->Length);
|
||||||
ASSERT(!FsRtlDoesDbcsContainWildCards(Name));
|
ASSERT(!FsRtlDoesDbcsContainWildCards(Name));
|
||||||
|
|
||||||
|
if (Name->Length == 0)
|
||||||
|
{
|
||||||
|
return (Expression->Length == 0);
|
||||||
|
}
|
||||||
|
|
||||||
while (NamePosition < Name->Length && ExpressionPosition < Expression->Length)
|
while (NamePosition < Name->Length && ExpressionPosition < Expression->Length)
|
||||||
{
|
{
|
||||||
/* Basic check to test if chars are equal */
|
/* Basic check to test if chars are equal */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue