sys: create: fix status return (IFSTEST)

This commit is contained in:
Bill Zissimopoulos 2016-12-17 12:43:00 -08:00
parent 299605b8fc
commit c780912810

View File

@ -263,7 +263,7 @@ static NTSTATUS FspFsvolCreateNoLock(
/* must be a relative path */
if (sizeof(WCHAR) <= FileName.Length && L'\\' == FileName.Buffer[0])
return STATUS_OBJECT_NAME_INVALID;
return STATUS_INVALID_PARAMETER; /* IFSTEST */
BOOLEAN AppendBackslash =
sizeof(WCHAR) * 2/* not empty or root */ <= RelatedFileNode->FileName.Length &&