From 121a830219d5064425e5d68df95da1c5ed110b7b Mon Sep 17 00:00:00 2001 From: Jason Edmeades Date: Thu, 8 Mar 2007 00:43:32 +0000 Subject: [PATCH] cmd.exe: Set errorlevel if CD fails. --- programs/cmd/builtins.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 8186695d21d..18806827223 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -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; }