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
454fa4be
Commit
454fa4be
authored
Nov 09, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Nov 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure we only CoUninitialize after successfully initializing.
Fix the address of the returned IShellLinkDataList interface.
parent
bf5155b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
msi.c
dlls/msi/msi.c
+4
-5
No files found.
dlls/msi/msi.c
View file @
454fa4be
...
@@ -1818,14 +1818,12 @@ UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
...
@@ -1818,14 +1818,12 @@ UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
IShellLinkDataList
*
dl
=
NULL
;
IShellLinkDataList
*
dl
=
NULL
;
IPersistFile
*
pf
=
NULL
;
IPersistFile
*
pf
=
NULL
;
LPEXP_DARWIN_LINK
darwin
=
NULL
;
LPEXP_DARWIN_LINK
darwin
=
NULL
;
HRESULT
r
;
HRESULT
r
,
init
;
TRACE
(
"%s %p %p %p
\n
"
,
debugstr_w
(
szShortcutTarget
),
TRACE
(
"%s %p %p %p
\n
"
,
debugstr_w
(
szShortcutTarget
),
szProductCode
,
szFeatureId
,
szComponentCode
);
szProductCode
,
szFeatureId
,
szComponentCode
);
r
=
CoInitialize
(
NULL
);
init
=
CoInitialize
(
NULL
);
if
(
FAILED
(
r
)
)
return
ERROR_FUNCTION_FAILED
;
r
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
r
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IPersistFile
,
(
LPVOID
*
)
&
pf
);
&
IID_IPersistFile
,
(
LPVOID
*
)
&
pf
);
...
@@ -1836,7 +1834,7 @@ UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
...
@@ -1836,7 +1834,7 @@ UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
if
(
SUCCEEDED
(
r
)
)
if
(
SUCCEEDED
(
r
)
)
{
{
r
=
IPersistFile_QueryInterface
(
pf
,
&
IID_IShellLinkDataList
,
r
=
IPersistFile_QueryInterface
(
pf
,
&
IID_IShellLinkDataList
,
(
LPVOID
*
)
dl
);
(
LPVOID
*
)
&
dl
);
if
(
SUCCEEDED
(
r
)
)
if
(
SUCCEEDED
(
r
)
)
{
{
IShellLinkDataList_CopyDataBlock
(
dl
,
EXP_DARWIN_ID_SIG
,
IShellLinkDataList_CopyDataBlock
(
dl
,
EXP_DARWIN_ID_SIG
,
...
@@ -1847,6 +1845,7 @@ UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
...
@@ -1847,6 +1845,7 @@ UINT WINAPI MsiGetShortcutTargetW( LPCWSTR szShortcutTarget,
IPersistFile_Release
(
pf
);
IPersistFile_Release
(
pf
);
}
}
if
(
SUCCEEDED
(
init
))
CoUninitialize
();
CoUninitialize
();
TRACE
(
"darwin = %p
\n
"
,
darwin
);
TRACE
(
"darwin = %p
\n
"
,
darwin
);
...
...
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