https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e9b438bfaa4f2122b3c3d1d57bcf631db9df4189

commit e9b438bfaa4f2122b3c3d1d57bcf631db9df4189
Author:     Bartosz Brachaczek <[email protected]>
AuthorDate: Sun Mar 31 19:33:53 2019 +0200
Commit:     Pierre Schweitzer <[email protected]>
CommitDate: Sun Mar 31 19:35:25 2019 +0200

    [NTOSKRNL] Addendum to 21d2c70: properly start DOS_START loop
    
    Fixes last failing test.
    
    CORE-15902
---
 ntoskrnl/fsrtl/name.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/fsrtl/name.c b/ntoskrnl/fsrtl/name.c
index 6a2c280cd1..ef760c3bf5 100644
--- a/ntoskrnl/fsrtl/name.c
+++ b/ntoskrnl/fsrtl/name.c
@@ -200,7 +200,7 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING 
Expression,
                     DontSkipDot = TRUE;
                     if (!EndOfName && Name->Buffer[NamePosition] == '.')
                     {
-                        for (Position = NamePosition - 1; Position < 
Name->Length / sizeof(WCHAR); Position++)
+                        for (Position = NamePosition + 1; Position < 
Name->Length / sizeof(WCHAR); Position++)
                         {
                             if (Name->Buffer[Position] == L'.')
                             {

Reply via email to