Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4a28e7cd
Commit
4a28e7cd
authored
Oct 18, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ShellLink_QueryInterface to return the right interface in
IShellLink_Constructor.
parent
86feb987
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
shelllink.c
dlls/shell32/shelllink.c
+4
-12
No files found.
dlls/shell32/shelllink.c
View file @
4a28e7cd
...
...
@@ -1152,6 +1152,7 @@ HRESULT WINAPI IShellLink_Constructor( IUnknown *pUnkOuter,
REFIID
riid
,
LPVOID
*
ppv
)
{
IShellLinkImpl
*
sl
;
HRESULT
r
;
TRACE
(
"unkOut=%p riid=%s
\n
"
,
pUnkOuter
,
debugstr_guid
(
riid
));
...
...
@@ -1176,18 +1177,9 @@ HRESULT WINAPI IShellLink_Constructor( IUnknown *pUnkOuter,
TRACE
(
"(%p)->()
\n
"
,
sl
);
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IShellLinkA
))
*
ppv
=
sl
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IShellLinkW
))
*
ppv
=
&
(
sl
->
lpvtblw
);
else
{
LocalFree
((
HLOCAL
)
sl
);
ERR
(
"E_NOINTERFACE
\n
"
);
return
E_NOINTERFACE
;
}
return
S_OK
;
r
=
ShellLink_QueryInterface
(
sl
,
riid
,
ppv
);
ShellLink_Release
(
sl
);
return
r
;
}
...
...
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