GetConsoleTitle(szWindowTitle, ARRAYSIZE(szWindowTitle));
bTitleSet = FALSE;
_stprintf(szNewTitle, _T("%s - %s%s"), szWindowTitle, First, Rest);
- SetConsoleTitle(szNewTitle);
+ ConSetTitle(szNewTitle);
/* check if this is a .BAT or .CMD file */
dot = _tcsrchr (szFullName, _T('.'));
/* Restore the original console title */
if (!bTitleSet)
- SetConsoleTitle(szWindowTitle);
+ ConSetTitle(szWindowTitle);
return dwExitCode;
}