sys,launcher: MUP volume prefixes (share names) are now case insensitive

This commit is contained in:
Bill Zissimopoulos
2016-09-11 14:35:56 -07:00
parent f89c91cd10
commit 997476f015
4 changed files with 9 additions and 8 deletions

View File

@ -268,9 +268,7 @@ static NTSTATUS FspFsvolCreateNoLock(
/* check and remove any volume prefix */
if (0 == RelatedFileObject && 0 < FsvolDeviceExtension->VolumePrefix.Length)
{
if (FileNode->FileName.Length <= FsvolDeviceExtension->VolumePrefix.Length ||
!RtlEqualMemory(FileNode->FileName.Buffer, FsvolDeviceExtension->VolumePrefix.Buffer,
FsvolDeviceExtension->VolumePrefix.Length) ||
if (!FspFsvolDeviceVolumePrefixInString(FsvolDeviceObject, &FileNode->FileName) ||
'\\' != FileNode->FileName.Buffer[FsvolDeviceExtension->VolumePrefix.Length / sizeof(WCHAR)])
{
FspFileNodeDereference(FileNode);