Commit aff0343d authored by Alexandre Julliard's avatar Alexandre Julliard

Update __wine_main_argc after option processing.

parent 921df719
......@@ -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--;
......
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