mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-26 02:12:45 -05:00
sys: FspFsvolFileSystemControlReparsePoint: replace use of RtlEqualUnicodeString with FspFsvolDeviceVolumePrefixInString
This commit is contained in:
parent
0534225662
commit
32c289fa34
@ -45,7 +45,6 @@
|
|||||||
#define FSP_ALLOC_INTERNAL_TAG 'IpsF'
|
#define FSP_ALLOC_INTERNAL_TAG 'IpsF'
|
||||||
#define FSP_ALLOC_EXTERNAL_TAG 'XpsF'
|
#define FSP_ALLOC_EXTERNAL_TAG 'XpsF'
|
||||||
#define FSP_IO_INCREMENT IO_NETWORK_INCREMENT
|
#define FSP_IO_INCREMENT IO_NETWORK_INCREMENT
|
||||||
#define FSP_VOLUME_PREFIX_CASE_INS TRUE
|
|
||||||
|
|
||||||
/* debug */
|
/* debug */
|
||||||
#if DBG
|
#if DBG
|
||||||
@ -850,7 +849,7 @@ static inline
|
|||||||
BOOLEAN FspFsvolDeviceVolumePrefixInString(PDEVICE_OBJECT DeviceObject, PUNICODE_STRING String)
|
BOOLEAN FspFsvolDeviceVolumePrefixInString(PDEVICE_OBJECT DeviceObject, PUNICODE_STRING String)
|
||||||
{
|
{
|
||||||
return RtlPrefixUnicodeString(&FspFsvolDeviceExtension(DeviceObject)->VolumePrefix, String,
|
return RtlPrefixUnicodeString(&FspFsvolDeviceExtension(DeviceObject)->VolumePrefix, String,
|
||||||
FSP_VOLUME_PREFIX_CASE_INS);
|
TRUE);
|
||||||
}
|
}
|
||||||
NTSTATUS FspDeviceCopyList(
|
NTSTATUS FspDeviceCopyList(
|
||||||
PDEVICE_OBJECT **PDeviceObjects, PULONG PDeviceObjectCount);
|
PDEVICE_OBJECT **PDeviceObjects, PULONG PDeviceObjectCount);
|
||||||
|
@ -205,9 +205,7 @@ static NTSTATUS FspFsvolFileSystemControlReparsePoint(
|
|||||||
TargetFileNameIndex += FsvolDeviceExtension->VolumePrefix.Length;
|
TargetFileNameIndex += FsvolDeviceExtension->VolumePrefix.Length;
|
||||||
|
|
||||||
if (TargetFileNameIndex < ReparseTargetPathLength &&
|
if (TargetFileNameIndex < ReparseTargetPathLength &&
|
||||||
RtlEqualUnicodeString(&FsvolDeviceExtension->VolumePrefix,
|
FspFsvolDeviceVolumePrefixInString(FsvolDeviceObject, &TargetObjectName))
|
||||||
&TargetObjectName,
|
|
||||||
FSP_VOLUME_PREFIX_CASE_INS))
|
|
||||||
TargetOnFileSystem = (UINT16)TargetFileNameIndex;
|
TargetOnFileSystem = (UINT16)TargetFileNameIndex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user