mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-24 01:13:04 -05:00
memfs: allow empty VolumePrefix in command line
This commit is contained in:
parent
10c997ab6b
commit
6be55aa515
@ -76,6 +76,7 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
|
||||
break;
|
||||
case L'u':
|
||||
argtos(VolumePrefix);
|
||||
if (0 != VolumePrefix && L'\0' != VolumePrefix[0])
|
||||
Flags = MemfsNet;
|
||||
break;
|
||||
default:
|
||||
@ -122,7 +123,8 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
|
||||
info(L"%s -t %ld -n %ld -s %ld%s%s%s%s%s%s",
|
||||
L"" PROGNAME, FileInfoTimeout, MaxFileNodes, MaxFileSize,
|
||||
RootSddl ? L" -S " : L"", RootSddl ? RootSddl : L"",
|
||||
VolumePrefix ? L" -u " : L"", VolumePrefix ? VolumePrefix : L"",
|
||||
0 != VolumePrefix && L'\0' != VolumePrefix[0] ? L" -u " : L"",
|
||||
0 != VolumePrefix && L'\0' != VolumePrefix[0] ? VolumePrefix : L"",
|
||||
MountPoint ? L" -m " : L"", MountPoint ? MountPoint : L"");
|
||||
|
||||
Service->UserContext = Memfs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user