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
1b0182f9
Commit
1b0182f9
authored
Jul 21, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use IsEqualIID() instead of memcmp().
parent
11451080
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
datacache.c
dlls/ole32/datacache.c
+10
-10
No files found.
dlls/ole32/datacache.c
View file @
1b0182f9
...
...
@@ -879,7 +879,7 @@ static HRESULT WINAPI DataCache_NDIUnknown_QueryInterface(
/*
* Perform a sanity check on the parameters.
*/
if
(
(
this
==
0
)
||
(
ppvObject
==
0
)
)
if
(
ppvObject
==
0
)
return
E_INVALIDARG
;
/*
...
...
@@ -890,30 +890,30 @@ static HRESULT WINAPI DataCache_NDIUnknown_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
=
iface
;
}
else
if
(
memcmp
(
&
IID_IDataObject
,
riid
,
sizeof
(
IID_IDataObject
))
==
0
)
else
if
(
IsEqualIID
(
&
IID_IDataObject
,
riid
)
)
{
*
ppvObject
=
&
this
->
lpVtbl
;
}
else
if
(
(
memcmp
(
&
IID_IPersistStorage
,
riid
,
sizeof
(
IID_IPersistStorage
))
==
0
)
||
(
memcmp
(
&
IID_IPersist
,
riid
,
sizeof
(
IID_IPersist
))
==
0
)
)
else
if
(
IsEqualIID
(
&
IID_IPersistStorage
,
riid
)
||
IsEqualIID
(
&
IID_IPersist
,
riid
)
)
{
*
ppvObject
=
&
this
->
lpvtblIPersistStorage
;
}
else
if
(
(
memcmp
(
&
IID_IViewObject
,
riid
,
sizeof
(
IID_IViewObject
))
==
0
)
||
(
memcmp
(
&
IID_IViewObject2
,
riid
,
sizeof
(
IID_IViewObject2
))
==
0
)
)
else
if
(
IsEqualIID
(
&
IID_IViewObject
,
riid
)
||
IsEqualIID
(
&
IID_IViewObject2
,
riid
)
)
{
*
ppvObject
=
&
this
->
lpvtblIViewObject
;
}
else
if
(
(
memcmp
(
&
IID_IOleCache
,
riid
,
sizeof
(
IID_IOleCache
))
==
0
)
||
(
memcmp
(
&
IID_IOleCache2
,
riid
,
sizeof
(
IID_IOleCache2
))
==
0
)
)
else
if
(
IsEqualIID
(
&
IID_IOleCache
,
riid
)
||
IsEqualIID
(
&
IID_IOleCache2
,
riid
)
)
{
*
ppvObject
=
&
this
->
lpvtblIOleCache2
;
}
else
if
(
memcmp
(
&
IID_IOleCacheControl
,
riid
,
sizeof
(
IID_IOleCacheControl
))
==
0
)
else
if
(
IsEqualIID
(
&
IID_IOleCacheControl
,
riid
)
)
{
*
ppvObject
=
&
this
->
lpvtblIOleCacheControl
;
}
...
...
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