Update __wine_main_argc after option processing.

oldstable
Alexandre Julliard 2003-10-11 05:26:31 +00:00
parent 921df719e5
commit aff0343da5
1 changed files with 2 additions and 0 deletions

View File

@ -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--;