cmd.exe: Set errorlevel if CD fails.

This commit is contained in:
Jason Edmeades 2007-03-08 00:43:32 +00:00 committed by Alexandre Julliard
parent 5c8c694e5e
commit 121a830219
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}