Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bda2832d
Commit
bda2832d
authored
Nov 06, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Moved command-line help to the loader binary.
parent
36c4ec8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
loader.c
dlls/ntdll/loader.c
+0
-32
main.c
loader/main.c
+32
-0
No files found.
dlls/ntdll/loader.c
View file @
bda2832d
...
...
@@ -2319,37 +2319,6 @@ void __wine_init_windows_dir( const WCHAR *windir, const WCHAR *sysdir )
/***********************************************************************
* check_command_line
*
* Check if command line is one that needs to be handled specially.
*/
static
void
check_command_line
(
int
argc
,
char
*
argv
[]
)
{
static
const
char
version
[]
=
PACKAGE_STRING
"
\n
"
;
static
const
char
usage
[]
=
"Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
\n
"
" wine --help Display this help and exit
\n
"
" wine --version Output version information and exit
\n
"
;
if
(
argc
<=
1
)
{
write
(
2
,
usage
,
sizeof
(
usage
)
-
1
);
exit
(
1
);
}
if
(
!
strcmp
(
argv
[
1
],
"--help"
))
{
write
(
1
,
usage
,
sizeof
(
usage
)
-
1
);
exit
(
0
);
}
if
(
!
strcmp
(
argv
[
1
],
"--version"
))
{
write
(
1
,
version
,
sizeof
(
version
)
-
1
);
exit
(
0
);
}
}
/***********************************************************************
* __wine_process_init
*/
void
__wine_process_init
(
void
)
...
...
@@ -2362,7 +2331,6 @@ void __wine_process_init(void)
void
(
*
DECLSPEC_NORETURN
init_func
)(
void
);
extern
mode_t
FILE_umask
;
check_command_line
(
__wine_main_argc
,
__wine_main_argv
);
main_exe_file
=
thread_init
();
/* retrieve current umask */
...
...
loader/main.c
View file @
bda2832d
...
...
@@ -61,6 +61,37 @@ static inline void reserve_area( void *addr, size_t size )
#endif
/* __APPLE__ */
/***********************************************************************
* check_command_line
*
* Check if command line is one that needs to be handled specially.
*/
static
void
check_command_line
(
int
argc
,
char
*
argv
[]
)
{
static
const
char
version
[]
=
PACKAGE_STRING
;
static
const
char
usage
[]
=
"Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
\n
"
" wine --help Display this help and exit
\n
"
" wine --version Output version information and exit"
;
if
(
argc
<=
1
)
{
fprintf
(
stderr
,
"%s
\n
"
,
usage
);
exit
(
1
);
}
if
(
!
strcmp
(
argv
[
1
],
"--help"
))
{
printf
(
"%s
\n
"
,
usage
);
exit
(
0
);
}
if
(
!
strcmp
(
argv
[
1
],
"--version"
))
{
printf
(
"%s
\n
"
,
version
);
exit
(
0
);
}
}
/**********************************************************************
* main
*/
...
...
@@ -69,6 +100,7 @@ int main( int argc, char *argv[] )
char
error
[
1024
];
int
i
;
check_command_line
(
argc
,
argv
);
if
(
wine_main_preload_info
)
{
for
(
i
=
0
;
wine_main_preload_info
[
i
].
size
;
i
++
)
...
...
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