From e9b438bfaa4f2122b3c3d1d57bcf631db9df4189 Mon Sep 17 00:00:00 2001 From: Bartosz Brachaczek Date: Sun, 31 Mar 2019 19:33:53 +0200 Subject: [PATCH] [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 6a2c280cd1a..ef760c3bf58 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'.') {