sys: FspFsvolCreate: clarify comment

This commit is contained in:
Bill Zissimopoulos 2016-11-04 12:22:43 -07:00
parent a80a9d3d4c
commit 5c8da5518c

View File

@ -302,7 +302,10 @@ static NTSTATUS FspFsvolCreateNoLock(
(0 == StreamPart.Length) * sizeof(WCHAR));
}
/* check and remove any volume prefix */
/*
* Check and remove any volume prefix. Only do this when RelatedFileObject is NULL,
* because the volume prefix has been removed already from the RelatedFileNode.
*/
if (0 == RelatedFileObject && 0 < FsvolDeviceExtension->VolumePrefix.Length)
{
if (!FspFsvolDeviceVolumePrefixInString(FsvolDeviceObject, &FileNode->FileName) ||