cmd.exe: Set errorlevel if CD fails.
This commit is contained in:
parent
5c8c694e5e
commit
121a830219
|
@ -1105,6 +1105,7 @@ void WCMD_setshow_default (char *command) {
|
|||
WINE_TRACE("Really changing to directory '%s'\n", string);
|
||||
status = SetCurrentDirectory (string);
|
||||
if (!status) {
|
||||
errorlevel = 1;
|
||||
WCMD_print_error ();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue