mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOSKRNL] Do not try to access OldBackTracking[-1]
It can be triggered by the existing "F<", "FILE.TXT" case in the tests. CORE-15902
This commit is contained in:
parent
695e00fbbd
commit
d256ff6006
1 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
|
||||||
if (NamePosition >= Name->Length)
|
if (NamePosition >= Name->Length)
|
||||||
{
|
{
|
||||||
EndOfName = TRUE;
|
EndOfName = TRUE;
|
||||||
if (OldBackTracking[MatchingChars - 1] == Expression->Length * 2)
|
if (MatchingChars && OldBackTracking[MatchingChars - 1] == Expression->Length * 2)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -422,7 +422,7 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Store result value */
|
/* Store result value */
|
||||||
Result = (OldBackTracking[MatchingChars - 1] == Expression->Length * 2);
|
Result = MatchingChars && (OldBackTracking[MatchingChars - 1] == Expression->Length * 2);
|
||||||
|
|
||||||
Exit:
|
Exit:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue