[PATCH 0/1] MR6290: explorer: Fix desktop command-line parameter parsing.
From: SmithGoll <2022209065(a)qq.com> --- programs/explorer/desktop.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c index fb59258ad36..fb521188717 100644 --- a/programs/explorer/desktop.c +++ b/programs/explorer/desktop.c @@ -1158,11 +1158,19 @@ void manage_desktop( WCHAR *arg ) } /* parse the desktop option */ - /* the option is of the form /desktop=name[,widthxheight[,driver]] */ + /* the option is of the form /desktop[=name[,widthxheight[,driver]]] */ if ((arg[0] == '=' || arg[0] == ',') && arg[1] && arg[1] != ',') { - arg++; - name = arg; + if (arg[0] == ',') + { + name = get_default_desktop_name(); + } + else + { + arg++; + name = arg; + } + if ((p = wcschr( arg, ',' ))) { *p++ = 0; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6290
participants (2)
-
SmithGoll -
SmithGoll (@SmithGoll)