Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ee1e4ce4
Commit
ee1e4ce4
authored
Jul 10, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Jul 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: exit() replaced by ExitProcess().
parent
c5711b46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
main.c
misc/main.c
+7
-6
No files found.
misc/main.c
View file @
ee1e4ce4
...
...
@@ -144,7 +144,7 @@ static char szUsage[] =
void
MAIN_Usage
(
char
*
name
)
{
MESSAGE
(
szUsage
,
WINE_RELEASE_INFO
,
name
);
exit
(
1
);
ExitProcess
(
1
);
}
/***********************************************************************
...
...
@@ -312,7 +312,8 @@ BOOL MAIN_ParseDebugOptions(char *options)
MESSAGE
(
"%-9s%c"
,
debug_ch_name
[
i
],
(((
i
+
2
)
%
8
==
0
)
?
'\n'
:
' '
));
MESSAGE
(
"
\n\n
"
);
exit
(
1
);
ExitProcess
(
1
);
return
FALSE
;
}
/***********************************************************************
...
...
@@ -697,7 +698,7 @@ void MAIN_ParseLanguageOption( char *arg )
MESSAGE
(
"Invalid language specified '%s'. Supported languages are: "
,
arg
);
for
(
p
=
Languages
;
p
->
name
;
p
++
)
MESSAGE
(
"%s "
,
p
->
name
);
MESSAGE
(
"
\n
"
);
exit
(
1
);
ExitProcess
(
1
);
}
...
...
@@ -714,7 +715,7 @@ void MAIN_ParseModeOption( char *arg )
{
MESSAGE
(
"Invalid mode '%s' specified.
\n
"
,
arg
);
MESSAGE
(
"Valid modes are: 'standard', 'enhanced' (default).
\n
"
);
exit
(
1
);
ExitProcess
(
1
);
}
}
...
...
@@ -745,12 +746,12 @@ static void MAIN_ParseOptions( int *argc, char *argv[] )
if
(
!
strcmp
(
argv
[
i
],
"-v"
)
||
!
strcmp
(
argv
[
i
],
"-version"
))
{
MESSAGE
(
"%s
\n
"
,
WINE_RELEASE_INFO
);
exit
(
0
);
ExitProcess
(
0
);
}
if
(
!
strcmp
(
argv
[
i
],
"-h"
)
||
!
strcmp
(
argv
[
i
],
"-help"
))
{
MAIN_Usage
(
argv
[
0
]);
exit
(
0
);
ExitProcess
(
0
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment