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
4ffcf335
Commit
4ffcf335
authored
Jul 30, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: SecManagerImpl_QueryInterface clean up.
parent
8f108a0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
sec_mgr.c
dlls/urlmon/sec_mgr.c
+8
-16
No files found.
dlls/urlmon/sec_mgr.c
View file @
4ffcf335
...
...
@@ -854,31 +854,23 @@ static HRESULT WINAPI SecManagerImpl_QueryInterface(IInternetSecurityManagerEx2*
{
SecManagerImpl
*
This
=
impl_from_IInternetSecurityManagerEx2
(
iface
);
TRACE
(
"(%p)->(%s
,
%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"(%p)->(%s
%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
/* Perform a sanity check on the parameters.*/
if
(
(
This
==
0
)
||
(
ppvObject
==
0
)
)
if
(
!
ppvObject
)
return
E_INVALIDARG
;
/* Initialize the return parameter */
*
ppvObject
=
0
;
/* Compare the riid with the interface IDs implemented by this object.*/
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
)
||
IsEqualIID
(
&
IID_IInternetSecurityManager
,
riid
)
||
IsEqualIID
(
&
IID_IInternetSecurityManagerEx
,
riid
)
||
IsEqualIID
(
&
IID_IInternetSecurityManagerEx2
,
riid
))
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
)
||
IsEqualIID
(
&
IID_IInternetSecurityManager
,
riid
)
||
IsEqualIID
(
&
IID_IInternetSecurityManagerEx
,
riid
)
||
IsEqualIID
(
&
IID_IInternetSecurityManagerEx2
,
riid
))
{
*
ppvObject
=
iface
;
/* Check that we obtained an interface.*/
if
(
!*
ppvObject
)
{
}
else
{
WARN
(
"not supported interface %s
\n
"
,
debugstr_guid
(
riid
));
*
ppvObject
=
NULL
;
return
E_NOINTERFACE
;
}
/* Query Interface always increases the reference count by one when it is successful */
IInternetSecurityManagerEx2_AddRef
(
iface
);
return
S_OK
;
}
...
...
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