Marcus Meissner : cmd: Break out of the argument scan loop (Coverity).
Alexandre Julliard
julliard at winehq.org
Fri Dec 4 09:11:28 CST 2009
Module: wine
Branch: master
Commit: f62218fc66016079b5455e0a7f6c161b8c2b6a2c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f62218fc66016079b5455e0a7f6c161b8c2b6a2c
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Fri Dec 4 10:06:13 2009 +0100
cmd: Break out of the argument scan loop (Coverity).
---
programs/cmd/wcmdmain.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index 9f5b6df..fed1fbd 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -1153,13 +1153,10 @@ void WCMD_run_program (WCHAR *command, int called) {
WCMD_run_program(command, called);
return;
}
- if (!status) {
- WCMD_print_error ();
- /* If a command fails to launch, it sets errorlevel 9009 - which
- does not seem to have any associated constant definition */
- errorlevel = 9009;
- return;
- }
+
+ if (!status)
+ break;
+
if (!assumeInternal && !console) errorlevel = 0;
else
{
More information about the wine-cvs
mailing list