Update start.cpp

Changed the /mount_protected command-line switch to be checked before the /mount command-line switch.
This commit is contained in:
offhub 2023-09-08 21:06:43 +03:00
parent 19827a8d91
commit 77f705f198
1 changed files with 5 additions and 5 deletions

View File

@ -665,16 +665,16 @@ BOOL Parse_Command_Line(void)
if (end == L'\"')
++cmd;
} else if (_wcsnicmp(cmd, L"mount", 5) == 0) {
Validate_Box_Name();
return die(SbieDll_Mount(BoxName, BoxKey, FALSE) ? EXIT_SUCCESS : EXIT_FAILURE);
} else if (_wcsnicmp(cmd, L"mount_protected", 15) == 0) {
Validate_Box_Name();
return die(SbieDll_Mount(BoxName, BoxKey, TRUE) ? EXIT_SUCCESS : EXIT_FAILURE);
} else if (_wcsnicmp(cmd, L"mount", 5) == 0) {
Validate_Box_Name();
return die(SbieDll_Mount(BoxName, BoxKey, FALSE) ? EXIT_SUCCESS : EXIT_FAILURE);
//
// Command line switch /listpids
//