mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[NTOSKRNL]
FsRtlIsDbcsInExpression/FsRtlIsNameInExpression: in case there are contigous stars in the expression, skip all the stars up to the last one and only consider the last one. This fixes the failing tests. svn path=/trunk/; revision=56143
This commit is contained in:
parent
3f4382482e
commit
ce02953a73
|
@ -187,6 +187,12 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
|
|||
/* Test star */
|
||||
else if (Expression->Buffer[ExpressionPosition] == '*')
|
||||
{
|
||||
/* Skip contigous stars */
|
||||
while (ExpressionPosition + 1 < Expression->Length && Expression->Buffer[ExpressionPosition + 1] == '*')
|
||||
{
|
||||
ExpressionPosition++;
|
||||
}
|
||||
|
||||
/* Save star position */
|
||||
if (!BackTracking)
|
||||
{
|
||||
|
|
|
@ -117,6 +117,12 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
|
|||
/* Test star */
|
||||
else if (Expression->Buffer[ExpressionPosition] == L'*')
|
||||
{
|
||||
/* Skip contigous stars */
|
||||
while (ExpressionPosition + 1 < Expression->Length / sizeof(WCHAR) && Expression->Buffer[ExpressionPosition + 1] == '*')
|
||||
{
|
||||
ExpressionPosition++;
|
||||
}
|
||||
|
||||
/* Save star position */
|
||||
if (!BackTracking)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue