mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Restore console title after running a command
svn path=/trunk/; revision=17763
This commit is contained in:
parent
7555a90fe9
commit
589e1e9ee0
1 changed files with 1 additions and 7 deletions
|
@ -299,9 +299,7 @@ Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest)
|
||||||
TCHAR *first = NULL;
|
TCHAR *first = NULL;
|
||||||
TCHAR *rest = NULL;
|
TCHAR *rest = NULL;
|
||||||
TCHAR *full = NULL;
|
TCHAR *full = NULL;
|
||||||
#ifndef __REACTOS__
|
|
||||||
TCHAR szWindowTitle[MAX_PATH];
|
TCHAR szWindowTitle[MAX_PATH];
|
||||||
#endif
|
|
||||||
DWORD dwExitCode = 0;
|
DWORD dwExitCode = 0;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
@ -410,9 +408,7 @@ Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __REACTOS__
|
|
||||||
GetConsoleTitle (szWindowTitle, MAX_PATH);
|
GetConsoleTitle (szWindowTitle, MAX_PATH);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* check if this is a .BAT or .CMD file */
|
/* check if this is a .BAT or .CMD file */
|
||||||
if (!_tcsicmp (_tcsrchr (szFullName, _T('.')), _T(".bat")) ||
|
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 */
|
/* Get code page if it has been change */
|
||||||
InputCodePage= GetConsoleCP();
|
InputCodePage= GetConsoleCP();
|
||||||
OutputCodePage = GetConsoleOutputCP();
|
OutputCodePage = GetConsoleOutputCP();
|
||||||
#ifndef __REACTOS__
|
SetConsoleTitle (szWindowTitle);
|
||||||
SetConsoleTitle (szWindowTitle);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
free(first);
|
free(first);
|
||||||
free(rest);
|
free(rest);
|
||||||
|
|
Loading…
Reference in a new issue