memfs: empty Mountpoint ("") now means autodetect (same as no MountPoint)

This commit is contained in:
Bill Zissimopoulos 2016-05-14 23:52:37 -07:00
parent 22d1f86ac1
commit e4e2465bcb

View File

@ -90,7 +90,8 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv)
goto exit; goto exit;
} }
Result = FspFileSystemSetMountPoint(MemfsFileSystem(Memfs), MountPoint); Result = FspFileSystemSetMountPoint(MemfsFileSystem(Memfs),
MountPoint && MountPoint[0] ? MountPoint : 0);
if (!NT_SUCCESS(Result)) if (!NT_SUCCESS(Result))
{ {
fail(L"cannot mount MEMFS"); fail(L"cannot mount MEMFS");