winevdm: fix return value
Austin English
austinenglish at gmail.com
Mon Jul 6 02:14:27 CDT 2009
Perhaps we should add /h, /H, /? options...
--
-Austin
-------------- next part --------------
diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c
index ea6a494..dd68b63 100644
--- a/programs/winevdm/winevdm.c
+++ b/programs/winevdm/winevdm.c
@@ -365,7 +365,7 @@ static char *build_command_line( char **argv )
static void usage(void)
{
WINE_MESSAGE( "Usage: winevdm.exe [--app-name app.exe] command line\n\n" );
- ExitProcess(1);
+ ExitProcess(0);
}
@@ -397,7 +397,7 @@ int main( int argc, char *argv[] )
if (!SearchPathA( NULL, argv[1], ".exe", sizeof(buffer), buffer, NULL ))
{
WINE_MESSAGE( "winevdm: unable to exec '%s': file not found\n", argv[1] );
- ExitProcess(1);
+ ExitProcess(0);
}
appname = buffer;
first_arg = argv + 1;
More information about the wine-patches
mailing list