mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
sys: canonicalize filename related functions under the name FspFileName*
This commit is contained in:
@ -185,7 +185,7 @@ static NTSTATUS FspFsvolQueryDirectoryCopy(
|
||||
Match = MatchAll;
|
||||
if (!Match)
|
||||
{
|
||||
Result = FspIsNameInExpression(DirectoryPattern, &FileName, CaseInsensitive, 0, &Match);
|
||||
Result = FspFileNameInExpression(DirectoryPattern, &FileName, CaseInsensitive, 0, &Match);
|
||||
if (!NT_SUCCESS(Result))
|
||||
return Result;
|
||||
}
|
||||
@ -626,7 +626,7 @@ static NTSTATUS FspFsvolQueryDirectory(
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
/* check that FileName is valid (if supplied) */
|
||||
if (0 != FileName && !FspUnicodePathIsValidPattern(FileName))
|
||||
if (0 != FileName && !FspFileNameIsValidPattern(FileName))
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
/* is this an allowed file information class? */
|
||||
|
Reference in New Issue
Block a user