From: Gé van Geldorp Date: Fri, 9 Sep 2005 12:22:25 +0000 (+0000) Subject: Restore console title after running a command X-Git-Tag: ReactOS-0.2.8~654 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=589e1e9ee0316ed5348d162aeec94ef73c08d4df;hp=7555a90fe9eb45e9263bde5b1582ade2ad747f57;ds=sidebyside Restore console title after running a command svn path=/trunk/; revision=17763 --- diff --git a/reactos/subsys/system/cmd/cmd.c b/reactos/subsys/system/cmd/cmd.c index 1ca86351174..d9327a53555 100644 --- a/reactos/subsys/system/cmd/cmd.c +++ b/reactos/subsys/system/cmd/cmd.c @@ -299,9 +299,7 @@ Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest) 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 @@ Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest) 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 @@ Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest) /* Get code page if it has been change */ InputCodePage= GetConsoleCP(); OutputCodePage = GetConsoleOutputCP(); -#ifndef __REACTOS__ - SetConsoleTitle (szWindowTitle); -#endif + SetConsoleTitle (szWindowTitle); free(first); free(rest);