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
269909f5
Commit
269909f5
authored
Mar 01, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Mar 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut: Use IsEqualIID in connpt.c instead of memcmp for comparing IIDs.
parent
4253b012
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
connpt.c
dlls/oleaut32/connpt.c
+4
-12
No files found.
dlls/oleaut32/connpt.c
View file @
269909f5
...
...
@@ -160,14 +160,10 @@ static HRESULT WINAPI ConnectionPointImpl_QueryInterface(
/*
* Compare the riid with the interface IDs implemented by this object.
*/
if
(
memcmp
(
&
IID_IUnknown
,
riid
,
sizeof
(
IID_IUnknown
))
==
0
)
{
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
))
*
ppvObject
=
(
IConnectionPoint
*
)
This
;
}
else
if
(
memcmp
(
&
IID_IConnectionPoint
,
riid
,
sizeof
(
IID_IConnectionPoint
))
==
0
)
{
else
if
(
IsEqualIID
(
&
IID_IConnectionPoint
,
riid
))
*
ppvObject
=
(
IConnectionPoint
*
)
This
;
}
/*
* Check that we obtained an interface.
...
...
@@ -433,14 +429,10 @@ static HRESULT WINAPI EnumConnectionsImpl_QueryInterface(
/*
* Compare the riid with the interface IDs implemented by this object.
*/
if
(
memcmp
(
&
IID_IUnknown
,
riid
,
sizeof
(
IID_IUnknown
))
==
0
)
{
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
))
*
ppvObject
=
(
IEnumConnections
*
)
This
;
}
else
if
(
memcmp
(
&
IID_IEnumConnections
,
riid
,
sizeof
(
IID_IEnumConnections
))
==
0
)
{
else
if
(
IsEqualIID
(
&
IID_IEnumConnections
,
riid
))
*
ppvObject
=
(
IEnumConnections
*
)
This
;
}
/*
* Check that we obtained an interface.
...
...
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