mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-23 17:03:12 -05:00
memfs: memfs-main.c
This commit is contained in:
parent
13b1e448e8
commit
32007577a0
@ -68,11 +68,15 @@ int wmain(int argc, wchar_t **argv)
|
|||||||
Result = MemfsStart(Memfs);
|
Result = MemfsStart(Memfs);
|
||||||
if (!NT_SUCCESS(Result))
|
if (!NT_SUCCESS(Result))
|
||||||
fail("error: cannot start MEMFS");
|
fail("error: cannot start MEMFS");
|
||||||
|
Result = FspFileSystemSetMountPoint(MemfsFileSystem(Memfs), MountPoint);
|
||||||
|
if (!NT_SUCCESS(Result))
|
||||||
|
fail("error: cannot mount MEMFS");
|
||||||
|
|
||||||
SetConsoleCtrlHandler(ConsoleCtrlHandler, TRUE);
|
SetConsoleCtrlHandler(ConsoleCtrlHandler, TRUE);
|
||||||
if (WAIT_OBJECT_0 != WaitForSingleObject(MainEvent, INFINITE))
|
if (WAIT_OBJECT_0 != WaitForSingleObject(MainEvent, INFINITE))
|
||||||
fail("error: cannot wait on MainEvent");
|
fail("error: cannot wait on MainEvent");
|
||||||
|
|
||||||
|
FspFileSystemRemoveMountPoint(MemfsFileSystem(Memfs));
|
||||||
MemfsStop(Memfs);
|
MemfsStop(Memfs);
|
||||||
MemfsDelete(Memfs);
|
MemfsDelete(Memfs);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user