[NTOSKRNL]
[reactos.git] / reactos / ntoskrnl / fsrtl / dbcsname.c
index d99fa19..202c2a3 100644 (file)
@@ -181,7 +181,7 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
             switch (Expression->Buffer[ExpressionPosition])
             {
                 case '*':
             switch (Expression->Buffer[ExpressionPosition])
             {
                 case '*':
-                    StarFound = ExpressionPosition++;
+                    StarFound = MAXUSHORT;
                     break;
 
                 case '?':
                     break;
 
                 case '?':
@@ -226,6 +226,7 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
             if (ExpressionPosition == Expression->Length)
             {
                 NamePosition = Name->Length;
             if (ExpressionPosition == Expression->Length)
             {
                 NamePosition = Name->Length;
+                break;
             }
         }
         else if (Expression->Buffer[ExpressionPosition] == ANSI_DOS_STAR)
             }
         }
         else if (Expression->Buffer[ExpressionPosition] == ANSI_DOS_STAR)
@@ -253,7 +254,7 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
         }
         else
         {
         }
         else
         {
-            NamePosition = Name->Length;
+            break;
         }
     }
     if (ExpressionPosition + 1 == Expression->Length && NamePosition == Name->Length &&
         }
     }
     if (ExpressionPosition + 1 == Expression->Length && NamePosition == Name->Length &&