mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 04:05:11 +01:00
W32: pass correct (with offset) argc to protect_wargv
https://bugzilla.gnome.org/show_bug.cgi?id=772054
This commit is contained in:
parent
ee4c618f20
commit
01bfa16986
@ -348,7 +348,7 @@ main (int ignored_argc, char **ignored_argv)
|
|||||||
/* For the program name passed to spawnv(), don't use the quoted
|
/* For the program name passed to spawnv(), don't use the quoted
|
||||||
* version.
|
* version.
|
||||||
*/
|
*/
|
||||||
protect_wargv (argc, wargv + argv_zero_offset, &new_wargv);
|
protect_wargv (argc - argv_zero_offset, wargv + argv_zero_offset, &new_wargv);
|
||||||
|
|
||||||
if (argv[ARG_USE_PATH][0] == 'y')
|
if (argv[ARG_USE_PATH][0] == 'y')
|
||||||
handle = _wspawnvp (mode, wargv[ARG_PROGRAM], (const wchar_t **) new_wargv);
|
handle = _wspawnvp (mode, wargv[ARG_PROGRAM], (const wchar_t **) new_wargv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user