https://git.reactos.org/?p=reactos.git;a=commitdiff;h=21d2c70bb45e7c83ebc7a…
commit 21d2c70bb45e7c83ebc7a6acd22216ff2fb78280
Author: Bartosz Brachaczek <b.brachaczek(a)gmail.com>
AuthorDate: Sun Mar 31 11:32:57 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Mar 31 11:44:00 2019 +0200
[NTOSKRNL] Properly compare position to name length in FsRtlIsNameInExpressionPrivate
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 393815ffef..ae934900f4 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;
Position++)
+ for (Position = NamePosition - 1; Position < Name->Length /
sizeof(WCHAR); Position++)
{
if (Name->Buffer[Position] == L'.')
{