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
ffac31da
Commit
ffac31da
authored
Jul 23, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use IsEqualIID instead of memcmp to compare REFIIDs.
parent
c2c98ae0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
datacache.c
dlls/ole32/datacache.c
+1
-2
oleobj.c
dlls/ole32/oleobj.c
+2
-2
No files found.
dlls/ole32/datacache.c
View file @
ffac31da
...
...
@@ -2284,8 +2284,7 @@ HRESULT WINAPI CreateDataCache(
* This is necessary because it's the only time the non-delegating
* IUnknown pointer can be returned to the outside.
*/
if
(
(
pUnkOuter
!=
NULL
)
&&
(
memcmp
(
&
IID_IUnknown
,
riid
,
sizeof
(
IID_IUnknown
))
!=
0
)
)
if
(
pUnkOuter
&&
!
IsEqualIID
(
&
IID_IUnknown
,
riid
)
)
return
CLASS_E_NOAGGREGATION
;
/*
...
...
dlls/ole32/oleobj.c
View file @
ffac31da
...
...
@@ -615,8 +615,8 @@ static HRESULT WINAPI DataAdviseHolder_QueryInterface(
/*
* Compare the riid with the interface IDs implemented by this object.
*/
if
(
(
memcmp
(
&
IID_IUnknown
,
riid
,
sizeof
(
IID_IUnknown
))
==
0
)
||
(
memcmp
(
&
IID_IDataAdviseHolder
,
riid
,
sizeof
(
IID_IDataAdviseHolder
))
==
0
)
)
if
(
IsEqualIID
(
&
IID_IUnknown
,
riid
)
||
IsEqualIID
(
&
IID_IDataAdviseHolder
,
riid
)
)
{
*
ppvObject
=
iface
;
}
...
...
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