Author: pschweitzer
Date: Sun Dec 9 18:00:52 2012
New Revision: 57848
URL:
http://svn.reactos.org/svn/reactos?rev=57848&view=rev
Log:
[NTOSKRNL]
Properly set the position in name string when matching DOS_STAR wildcard.
This fixed 6 failing tests.
Modified:
trunk/reactos/ntoskrnl/fsrtl/dbcsname.c
trunk/reactos/ntoskrnl/fsrtl/name.c
Modified: trunk/reactos/ntoskrnl/fsrtl/dbcsname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/dbcsname.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/dbcsname.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/dbcsname.c [iso-8859-1] Sun Dec 9 18:00:52 2012
@@ -220,7 +220,7 @@
{
if (Name->Buffer[MatchingChars] == '.')
{
- NamePosition = MatchingChars;
+ NamePosition = MatchingChars + 1;
}
MatchingChars++;
}
Modified: trunk/reactos/ntoskrnl/fsrtl/name.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/name.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/name.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/name.c [iso-8859-1] Sun Dec 9 18:00:52 2012
@@ -156,7 +156,7 @@
{
if (Name->Buffer[MatchingChars] == L'.')
{
- NamePosition = MatchingChars;
+ NamePosition = MatchingChars + 1;
}
MatchingChars++;
}