sys: FspFsvolSetRenameInformation: correctly compute Suffix for SRV2 renames

This commit is contained in:
Bill Zissimopoulos
2016-10-27 11:44:43 -07:00
parent 26092211a8
commit 5fa631339d
3 changed files with 14 additions and 8 deletions

View File

@ -41,7 +41,7 @@ BOOLEAN FspFileNameIsValid(PUNICODE_STRING Path, PUNICODE_STRING StreamPart, PUL
/* if StreamPart is not NULL, StreamType must also be not NULL */
ASSERT(0 == StreamPart || 0 != StreamType);
if (0 != Path->Length % sizeof(WCHAR))
if (0 == Path->Length || 0 != Path->Length % sizeof(WCHAR))
return FALSE;
PWSTR PathBgn, PathEnd, PathPtr, StreamTypeStr = 0;