Commit ee1e4ce4 authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Alexandre Julliard

Bugfix: exit() replaced by ExitProcess().

parent c5711b46
...@@ -144,7 +144,7 @@ static char szUsage[] = ...@@ -144,7 +144,7 @@ static char szUsage[] =
void MAIN_Usage( char *name ) void MAIN_Usage( char *name )
{ {
MESSAGE( szUsage, WINE_RELEASE_INFO, name ); MESSAGE( szUsage, WINE_RELEASE_INFO, name );
exit(1); ExitProcess(1);
} }
/*********************************************************************** /***********************************************************************
...@@ -312,7 +312,8 @@ BOOL MAIN_ParseDebugOptions(char *options) ...@@ -312,7 +312,8 @@ BOOL MAIN_ParseDebugOptions(char *options)
MESSAGE("%-9s%c",debug_ch_name[i], MESSAGE("%-9s%c",debug_ch_name[i],
(((i+2)%8==0)?'\n':' ')); (((i+2)%8==0)?'\n':' '));
MESSAGE("\n\n"); MESSAGE("\n\n");
exit(1); ExitProcess(1);
return FALSE;
} }
/*********************************************************************** /***********************************************************************
...@@ -697,7 +698,7 @@ void MAIN_ParseLanguageOption( char *arg ) ...@@ -697,7 +698,7 @@ void MAIN_ParseLanguageOption( char *arg )
MESSAGE( "Invalid language specified '%s'. Supported languages are: ", arg ); MESSAGE( "Invalid language specified '%s'. Supported languages are: ", arg );
for (p = Languages; p->name; p++) MESSAGE( "%s ", p->name ); for (p = Languages; p->name; p++) MESSAGE( "%s ", p->name );
MESSAGE( "\n" ); MESSAGE( "\n" );
exit(1); ExitProcess(1);
} }
...@@ -714,7 +715,7 @@ void MAIN_ParseModeOption( char *arg ) ...@@ -714,7 +715,7 @@ void MAIN_ParseModeOption( char *arg )
{ {
MESSAGE( "Invalid mode '%s' specified.\n", arg); MESSAGE( "Invalid mode '%s' specified.\n", arg);
MESSAGE( "Valid modes are: 'standard', 'enhanced' (default).\n"); MESSAGE( "Valid modes are: 'standard', 'enhanced' (default).\n");
exit(1); ExitProcess(1);
} }
} }
...@@ -745,12 +746,12 @@ static void MAIN_ParseOptions( int *argc, char *argv[] ) ...@@ -745,12 +746,12 @@ static void MAIN_ParseOptions( int *argc, char *argv[] )
if (!strcmp( argv[i], "-v" ) || !strcmp( argv[i], "-version" )) if (!strcmp( argv[i], "-v" ) || !strcmp( argv[i], "-version" ))
{ {
MESSAGE( "%s\n", WINE_RELEASE_INFO ); MESSAGE( "%s\n", WINE_RELEASE_INFO );
exit(0); ExitProcess(0);
} }
if (!strcmp( argv[i], "-h" ) || !strcmp( argv[i], "-help" )) if (!strcmp( argv[i], "-h" ) || !strcmp( argv[i], "-help" ))
{ {
MAIN_Usage(argv[0]); MAIN_Usage(argv[0]);
exit(0); ExitProcess(0);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment