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,7 +76,8 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
|
|||||||
break;
|
break;
|
||||||
case L'u':
|
case L'u':
|
||||||
argtos(VolumePrefix);
|
argtos(VolumePrefix);
|
||||||
Flags = MemfsNet;
|
if (0 != VolumePrefix && L'\0' != VolumePrefix[0])
|
||||||
|
Flags = MemfsNet;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
goto usage;
|
goto usage;
|
||||||
@ -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",
|
info(L"%s -t %ld -n %ld -s %ld%s%s%s%s%s%s",
|
||||||
L"" PROGNAME, FileInfoTimeout, MaxFileNodes, MaxFileSize,
|
L"" PROGNAME, FileInfoTimeout, MaxFileNodes, MaxFileSize,
|
||||||
RootSddl ? L" -S " : L"", RootSddl ? RootSddl : L"",
|
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"");
|
MountPoint ? L" -m " : L"", MountPoint ? MountPoint : L"");
|
||||||
|
|
||||||
Service->UserContext = Memfs;
|
Service->UserContext = Memfs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user