diff --git a/reactos/ntoskrnl/fsrtl/dbcsname.c b/reactos/ntoskrnl/fsrtl/dbcsname.c index 755100bc5ea..e523a39bc89 100644 --- a/reactos/ntoskrnl/fsrtl/dbcsname.c +++ b/reactos/ntoskrnl/fsrtl/dbcsname.c @@ -285,6 +285,10 @@ FsRtlIsDbcsInExpression(IN PANSI_STRING Expression, /* If we are beyond name, we null match */ if (BeyondName) { + if (Name->Buffer[NamePosition] == '.') + { + NamePosition++; + } ExpressionPosition++; continue; } diff --git a/reactos/ntoskrnl/fsrtl/name.c b/reactos/ntoskrnl/fsrtl/name.c index d25c0ea0893..6dc96e338d5 100644 --- a/reactos/ntoskrnl/fsrtl/name.c +++ b/reactos/ntoskrnl/fsrtl/name.c @@ -216,6 +216,10 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression, /* If we are beyond name, we null match */ if (BeyondName) { + if (Name->Buffer[NamePosition] == L'.') + { + NamePosition++; + } ExpressionPosition++; continue; }