Dont exit on "exit /?". Reported by bblaauw(a)home.nl
Modified: trunk/reactos/subsys/system/cmd/internal.c
_____
Modified: trunk/reactos/subsys/system/cmd/internal.c
--- trunk/reactos/subsys/system/cmd/internal.c 2005-10-25 15:06:23 UTC
(rev 18769)
+++ trunk/reactos/subsys/system/cmd/internal.c 2005-10-25 15:18:35 UTC
(rev 18770)
@@ -683,7 +683,13 @@
INT CommandExit (LPTSTR cmd, LPTSTR param)
{
if (!_tcsncmp (param, _T("/?"), 2))
+ {
ConOutResPaging(TRUE,STRING_EXIT_HELP);
+ /* Just make sure */
+ bExit = FALSE;
+ /* Dont exit */
+ return 0;
+ }
if (bc != NULL && _tcsnicmp(param,_T("/b"),2) == 0)
{