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
0de1f3e6
Commit
0de1f3e6
authored
Nov 03, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass the correct verb.
Add a space between extra parameters. Wait for ShellExecute to complete.
parent
20ea04f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
shelllink.c
dlls/shell32/shelllink.c
+15
-1
No files found.
dlls/shell32/shelllink.c
View file @
0de1f3e6
...
...
@@ -2466,6 +2466,7 @@ static HRESULT WINAPI
ShellLink_InvokeCommand
(
IContextMenu
*
iface
,
LPCMINVOKECOMMANDINFO
lpici
)
{
IShellLinkImpl
*
This
=
impl_from_IContextMenu
(
iface
);
static
const
WCHAR
szOpen
[]
=
{
'O'
,
'p'
,
'e'
,
'n'
,
0
};
SHELLEXECUTEINFOW
sei
;
HWND
hwnd
=
NULL
;
/* FIXME: get using interface set from IObjectWithSite */
LPWSTR
args
=
NULL
;
...
...
@@ -2500,7 +2501,7 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici )
(
lpici
->
fMask
&
CMIC_MASK_UNICODE
)
)
{
LPCMINVOKECOMMANDINFOEX
iciex
=
(
LPCMINVOKECOMMANDINFOEX
)
lpici
;
DWORD
len
=
0
;
DWORD
len
=
2
;
if
(
This
->
sArgs
)
len
+=
lstrlenW
(
This
->
sArgs
);
...
...
@@ -2512,19 +2513,32 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici )
if
(
This
->
sArgs
)
lstrcatW
(
args
,
This
->
sArgs
);
if
(
iciex
->
lpParametersW
)
{
static
const
WCHAR
space
[]
=
{
' '
,
0
};
lstrcatW
(
args
,
space
);
lstrcatW
(
args
,
iciex
->
lpParametersW
);
}
}
memset
(
&
sei
,
0
,
sizeof
sei
);
sei
.
cbSize
=
sizeof
sei
;
sei
.
fMask
=
SEE_MASK_UNICODE
|
SEE_MASK_NOCLOSEPROCESS
;
sei
.
lpFile
=
path
;
sei
.
nShow
=
This
->
iShowCmd
;
sei
.
lpIDList
=
This
->
pPidl
;
sei
.
lpDirectory
=
This
->
sWorkDir
;
sei
.
lpParameters
=
args
;
sei
.
lpVerb
=
szOpen
;
if
(
ShellExecuteExW
(
&
sei
)
)
{
if
(
sei
.
hProcess
)
{
WaitForSingleObject
(
sei
.
hProcess
,
10000
);
CloseHandle
(
sei
.
hProcess
);
}
r
=
S_OK
;
}
else
r
=
E_FAIL
;
...
...
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