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
9db3444e
Commit
9db3444e
authored
Nov 24, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Treat unrecognized options as a file to open.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27b5c936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
explorer.c
programs/explorer/explorer.c
+9
-13
No files found.
programs/explorer/explorer.c
View file @
9db3444e
...
...
@@ -683,12 +683,11 @@ static void parse_command_line(LPWSTR commandline,parameters_struct *parameters)
static
const
WCHAR
arg_select
[]
=
{
'/'
,
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
','
};
static
const
WCHAR
arg_desktop
[]
=
{
'/'
,
'd'
,
'e'
,
's'
,
'k'
,
't'
,
'o'
,
'p'
};
LPWSTR
p
,
p2
;
LPWSTR
p
=
commandline
;
p2
=
commandline
;
p
=
strchrW
(
commandline
,
'/'
);
while
(
p
)
while
(
*
p
)
{
while
(
isspaceW
(
*
p
))
p
++
;
if
(
strncmpW
(
p
,
arg_n
,
sizeof
(
arg_n
)
/
sizeof
(
WCHAR
))
==
0
)
{
parameters
->
explorer_mode
=
FALSE
;
...
...
@@ -717,15 +716,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 */
}
else
p
++
;
p2
=
p
;
p
=
strchrW
(
p
,
'/'
);
}
if
(
p2
&&
*
p2
)
{
/* left over command line is generally the path to be opened */
copy_path_string
(
parameters
->
root
,
p2
);
else
{
/* left over command line is generally the path to be opened */
copy_path_string
(
parameters
->
root
,
p
);
break
;
}
}
}
...
...
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