Author: pschweitzer
Date: Wed Apr 24 15:25:19 2013
New Revision: 58842
URL:
http://svn.reactos.org/svn/reactos?rev=58842&view=rev
Log:
[NTOSKRNL]
Properly handle when we are at last dot in FsRtlIs*InExpression with DOS_STAR
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] Wed Apr 24 15:25:19 2013
@@ -236,6 +236,12 @@
break;
}
MatchingChars++;
+ }
+
+ /* In case we were already at last dot, simply accept it */
+ if (MatchingChars == Name->Length)
+ {
+ NamePosition++;
}
}
else
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] Wed Apr 24 15:25:19 2013
@@ -168,6 +168,12 @@
}
MatchingChars++;
}
+
+ /* In case we were already at last dot, simply accept it */
+ if (MatchingChars == Name->Length / sizeof(WCHAR))
+ {
+ NamePosition++;
+ }
}
else
{