mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOSKRNL] Properly compare position to name length in FsRtlIsNameInExpressionPrivate
CORE-15902
This commit is contained in:
parent
5d5e9c8486
commit
21d2c70bb4
1 changed files with 1 additions and 1 deletions
|
@ -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'.')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue