mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-24 09:23:37 -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_EXTERNAL_TAG 'XpsF'
|
||||
#define FSP_IO_INCREMENT IO_NETWORK_INCREMENT
|
||||
#define FSP_VOLUME_PREFIX_CASE_INS TRUE
|
||||
|
||||
/* debug */
|
||||
#if DBG
|
||||
@ -850,7 +849,7 @@ static inline
|
||||
BOOLEAN FspFsvolDeviceVolumePrefixInString(PDEVICE_OBJECT DeviceObject, PUNICODE_STRING String)
|
||||
{
|
||||
return RtlPrefixUnicodeString(&FspFsvolDeviceExtension(DeviceObject)->VolumePrefix, String,
|
||||
FSP_VOLUME_PREFIX_CASE_INS);
|
||||
TRUE);
|
||||
}
|
||||
NTSTATUS FspDeviceCopyList(
|
||||
PDEVICE_OBJECT **PDeviceObjects, PULONG PDeviceObjectCount);
|
||||
|
@ -205,9 +205,7 @@ static NTSTATUS FspFsvolFileSystemControlReparsePoint(
|
||||
TargetFileNameIndex += FsvolDeviceExtension->VolumePrefix.Length;
|
||||
|
||||
if (TargetFileNameIndex < ReparseTargetPathLength &&
|
||||
RtlEqualUnicodeString(&FsvolDeviceExtension->VolumePrefix,
|
||||
&TargetObjectName,
|
||||
FSP_VOLUME_PREFIX_CASE_INS))
|
||||
FspFsvolDeviceVolumePrefixInString(FsvolDeviceObject, &TargetObjectName))
|
||||
TargetOnFileSystem = (UINT16)TargetFileNameIndex;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user