Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
91a394a6
Commit
91a394a6
authored
Jan 14, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Support a quoted /desktop option.
Workaround for Worms Armageddon which uses an invalid but previously supported syntax. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1063623d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
explorer.c
programs/explorer/explorer.c
+7
-0
No files found.
programs/explorer/explorer.c
View file @
91a394a6
...
...
@@ -682,6 +682,7 @@ static void parse_command_line(LPWSTR commandline,parameters_struct *parameters)
static
const
WCHAR
arg_root
[]
=
{
'/'
,
'r'
,
'o'
,
'o'
,
't'
,
','
};
static
const
WCHAR
arg_select
[]
=
{
'/'
,
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
','
};
static
const
WCHAR
arg_desktop
[]
=
{
'/'
,
'd'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
};
static
const
WCHAR
arg_desktop_quotes
[]
=
{
'"'
,
'/'
,
'd'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
};
LPWSTR
p
=
commandline
;
...
...
@@ -716,6 +717,12 @@ static void parse_command_line(LPWSTR commandline,parameters_struct *parameters)
p
+=
sizeof
(
arg_desktop
)
/
sizeof
(
WCHAR
);
manage_desktop
(
p
);
/* the rest of the command line is handled by desktop mode */
}
/* workaround for Worms Armageddon that hardcodes a /desktop option with quotes */
else
if
(
strncmpW
(
p
,
arg_desktop_quotes
,
sizeof
(
arg_desktop_quotes
)
/
sizeof
(
WCHAR
))
==
0
)
{
p
+=
sizeof
(
arg_desktop_quotes
)
/
sizeof
(
WCHAR
);
manage_desktop
(
p
);
/* the rest of the command line is handled by desktop mode */
}
else
{
/* left over command line is generally the path to be opened */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment