mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 09:22:57 -05:00
sys: FspFsvolDeviceEnumerateContextByName, FspFileNodeRename: bugfix: properly enumerate/rename streams
This commit is contained in:
@ -635,7 +635,8 @@ PVOID FspFsvolDeviceEnumerateContextByName(PDEVICE_OBJECT DeviceObject, PUNICODE
|
||||
if (0 != Result &&
|
||||
FspFileNameIsPrefix(FileName, Result->FileName, CaseInsensitive, 0) &&
|
||||
FileName->Length < Result->FileName->Length &&
|
||||
'\\' == Result->FileName->Buffer[FileName->Length / sizeof(WCHAR)])
|
||||
(L'\\' == Result->FileName->Buffer[FileName->Length / sizeof(WCHAR)] ||
|
||||
L':' == Result->FileName->Buffer[FileName->Length / sizeof(WCHAR)]))
|
||||
return Result->Context;
|
||||
else
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user