[NTOSKRNL]

Properly set the position in name string when matching DOS_STAR wildcard.
This fixed 6 failing tests.

svn path=/trunk/; revision=57848
This commit is contained in:
Pierre Schweitzer 2012-12-09 18:00:52 +00:00
parent 2247e451bb
commit e51a80740b
2 changed files with 2 additions and 2 deletions

View file

@ -220,7 +220,7 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression,
{ {
if (Name->Buffer[MatchingChars] == '.') if (Name->Buffer[MatchingChars] == '.')
{ {
NamePosition = MatchingChars; NamePosition = MatchingChars + 1;
} }
MatchingChars++; MatchingChars++;
} }

View file

@ -156,7 +156,7 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
{ {
if (Name->Buffer[MatchingChars] == L'.') if (Name->Buffer[MatchingChars] == L'.')
{ {
NamePosition = MatchingChars; NamePosition = MatchingChars + 1;
} }
MatchingChars++; MatchingChars++;
} }