mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:13:01 +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
2 changed files with 12 additions and 0 deletions
|
@ -187,6 +187,12 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
|
||||||
/* Test star */
|
/* Test star */
|
||||||
else if (Expression->Buffer[ExpressionPosition] == '*')
|
else if (Expression->Buffer[ExpressionPosition] == '*')
|
||||||
{
|
{
|
||||||
|
/* Skip contigous stars */
|
||||||
|
while (ExpressionPosition + 1 < Expression->Length && Expression->Buffer[ExpressionPosition + 1] == '*')
|
||||||
|
{
|
||||||
|
ExpressionPosition++;
|
||||||
|
}
|
||||||
|
|
||||||
/* Save star position */
|
/* Save star position */
|
||||||
if (!BackTracking)
|
if (!BackTracking)
|
||||||
{
|
{
|
||||||
|
|
|
@ -117,6 +117,12 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
|
||||||
/* Test star */
|
/* Test star */
|
||||||
else if (Expression->Buffer[ExpressionPosition] == L'*')
|
else if (Expression->Buffer[ExpressionPosition] == L'*')
|
||||||
{
|
{
|
||||||
|
/* Skip contigous stars */
|
||||||
|
while (ExpressionPosition + 1 < Expression->Length / sizeof(WCHAR) && Expression->Buffer[ExpressionPosition + 1] == '*')
|
||||||
|
{
|
||||||
|
ExpressionPosition++;
|
||||||
|
}
|
||||||
|
|
||||||
/* Save star position */
|
/* Save star position */
|
||||||
if (!BackTracking)
|
if (!BackTracking)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue