mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00:00
[NTOSKRNL] Properly compare position to name length in FsRtlIsNameInExpressionPrivate
CORE-15902
This commit is contained in:
@@ -200,7 +200,7 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
|
|||||||
DontSkipDot = TRUE;
|
DontSkipDot = TRUE;
|
||||||
if (!EndOfName && Name->Buffer[NamePosition] == '.')
|
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'.')
|
if (Name->Buffer[Position] == L'.')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user