Skip to content
Snippets Groups Projects
Commit 6ffd6ebc authored by rswindell's avatar rswindell
Browse files

Global variable "errorlevel" wasn't being set by Unix version of external().

parent cb4ea48b
No related branches found
No related tags found
No related merge requests found
......@@ -1031,7 +1031,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
// lprintf("%s returned %d",realcmdline, retval);
errorlevel = retval; // Baja-retrievable error value
errorlevel = retval; // Baja or JS retrievable error value
return(retval);
}
......@@ -1893,7 +1893,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
input_thread_mutex_locked=false;
}
return(WEXITSTATUS(i));
return(errorlevel = WEXITSTATUS(i));
}
#endif /* !WIN32 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment