Check parameters of ShellToDos() and Unpack(). Bugreport from Semen Panevin 2:5025/121

This commit is contained in:
Stas Degteff 2011-02-22 16:18:21 +00:00
parent 3ec43ed652
commit a698156d4d
2 changed files with 6 additions and 2 deletions

View File

@ -1369,7 +1369,9 @@ void IEclass::DosShell() {
GFTRK("EditDosShell"); GFTRK("EditDosShell");
ShellToDos(getenv(GOLD_SHELL_ENV), LNG->DOS_Shell, LGREY_|_BLACK, YES); char * shell = getenv(GOLD_SHELL_ENV);
if( shell && *shell )
ShellToDos(shell, LNG->DOS_Shell, LGREY_|_BLACK, YES);
cursoron(); cursoron();
cursoroff(); cursoroff();

View File

@ -511,7 +511,9 @@ void NewArea(bool jumpnext) {
void DosShell() { void DosShell() {
ShellToDos(getenv(GOLD_SHELL_ENV), LNG->DOS_Shell, LGREY_|_BLACK, YES); char * shell = getenv(GOLD_SHELL_ENV);
if( shell && *shell )
ShellToDos(shell, LNG->DOS_Shell, LGREY_|_BLACK, YES);
} }