mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +00:00
Update __wine_main_argc after option processing.
This commit is contained in:
parent
921df719e5
commit
aff0343da5
1 changed files with 2 additions and 0 deletions
|
@ -744,6 +744,8 @@ void __wine_kernel_init(void)
|
|||
|
||||
/* Initialize everything */
|
||||
if (!process_init( __wine_main_argv, __wine_main_environ )) exit(1);
|
||||
/* update argc in case options have been removed */
|
||||
for (__wine_main_argc = 0; __wine_main_argv[__wine_main_argc]; __wine_main_argc++) /*nothing*/;
|
||||
|
||||
__wine_main_argv++; /* remove argv[0] (wine itself) */
|
||||
__wine_main_argc--;
|
||||
|
|
Loading…
Reference in a new issue