mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
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:
@@ -1476,7 +1476,6 @@ bool DOS_Shell::Execute(char* name, const char* args) {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
uint8_t c;uint16_t n;
|
uint8_t c;uint16_t n;
|
||||||
#endif
|
#endif
|
||||||
if (strrchr_dbcs(name,'\\')) { WriteOut(MSG_Get("SHELL_EXECUTE_ILLEGAL_COMMAND"),name); return true; }
|
|
||||||
if (!DOS_SetDrive(toupper(name[0])-'A')) {
|
if (!DOS_SetDrive(toupper(name[0])-'A')) {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if(!sec->Get_bool("automount")) { WriteOut(MSG_Get("SHELL_EXECUTE_DRIVE_NOT_FOUND"),toupper(name[0])); return true; }
|
if(!sec->Get_bool("automount")) { WriteOut(MSG_Get("SHELL_EXECUTE_DRIVE_NOT_FOUND"),toupper(name[0])); return true; }
|
||||||
|
Reference in New Issue
Block a user