Restore console title after running a command Modified: trunk/reactos/subsys/system/cmd/cmd.c _____
Modified: trunk/reactos/subsys/system/cmd/cmd.c --- trunk/reactos/subsys/system/cmd/cmd.c 2005-09-09 12:22:01 UTC (rev 17762) +++ trunk/reactos/subsys/system/cmd/cmd.c 2005-09-09 12:22:25 UTC (rev 17763) @@ -299,9 +299,7 @@
TCHAR *first = NULL; TCHAR *rest = NULL; TCHAR *full = NULL; -#ifndef __REACTOS__ TCHAR szWindowTitle[MAX_PATH]; -#endif DWORD dwExitCode = 0;
#ifdef _DEBUG @@ -410,9 +408,7 @@ return; }
-#ifndef __REACTOS__ GetConsoleTitle (szWindowTitle, MAX_PATH); -#endif
/* check if this is a .BAT or .CMD file */ if (!_tcsicmp (_tcsrchr (szFullName, _T('.')), _T(".bat")) || @@ -494,9 +490,7 @@ /* Get code page if it has been change */ InputCodePage= GetConsoleCP(); OutputCodePage = GetConsoleOutputCP(); -#ifndef __REACTOS__ - SetConsoleTitle (szWindowTitle); -#endif + SetConsoleTitle (szWindowTitle);
free(first); free(rest);