Not sure what the extra strrchr "\" check was about, but it was preventing the use of drive change commands like "a:\"

This commit is contained in:
Jonathan Campbell
2025-10-09 19:42:36 -07:00
parent b1a8644b94
commit 70d8404cec

View File

@@ -1476,7 +1476,6 @@ bool DOS_Shell::Execute(char* name, const char* args) {
#ifdef WIN32
uint8_t c;uint16_t n;
#endif
if (strrchr_dbcs(name,'\\')) { WriteOut(MSG_Get("SHELL_EXECUTE_ILLEGAL_COMMAND"),name); return true; }
if (!DOS_SetDrive(toupper(name[0])-'A')) {
#ifdef WIN32
if(!sec->Get_bool("automount")) { WriteOut(MSG_Get("SHELL_EXECUTE_DRIVE_NOT_FOUND"),toupper(name[0])); return true; }