[NTOSKRNL]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 9 Dec 2012 18:00:52 +0000 (18:00 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 9 Dec 2012 18:00:52 +0000 (18:00 +0000)
Properly set the position in name string when matching DOS_STAR wildcard.
This fixed 6 failing tests.

svn path=/trunk/; revision=57848

reactos/ntoskrnl/fsrtl/dbcsname.c
reactos/ntoskrnl/fsrtl/name.c

index e2c564e..e7a31c6 100644 (file)
@@ -220,7 +220,7 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
             {
                 if (Name->Buffer[MatchingChars] == '.')
                 {
-                    NamePosition = MatchingChars;
+                    NamePosition = MatchingChars + 1;
                 }
                 MatchingChars++;
             }
index f36b227..5b3b4f9 100644 (file)
@@ -156,7 +156,7 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
             {
                 if (Name->Buffer[MatchingChars] == L'.')
                 {
-                    NamePosition = MatchingChars;
+                    NamePosition = MatchingChars + 1;
                 }
                 MatchingChars++;
             }