Commit ffac31da authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

ole32: Use IsEqualIID instead of memcmp to compare REFIIDs.

parent c2c98ae0
...@@ -2284,8 +2284,7 @@ HRESULT WINAPI CreateDataCache( ...@@ -2284,8 +2284,7 @@ HRESULT WINAPI CreateDataCache(
* This is necessary because it's the only time the non-delegating * This is necessary because it's the only time the non-delegating
* IUnknown pointer can be returned to the outside. * IUnknown pointer can be returned to the outside.
*/ */
if ( (pUnkOuter!=NULL) && if ( pUnkOuter && !IsEqualIID(&IID_IUnknown, riid) )
(memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) != 0) )
return CLASS_E_NOAGGREGATION; return CLASS_E_NOAGGREGATION;
/* /*
......
...@@ -615,8 +615,8 @@ static HRESULT WINAPI DataAdviseHolder_QueryInterface( ...@@ -615,8 +615,8 @@ static HRESULT WINAPI DataAdviseHolder_QueryInterface(
/* /*
* Compare the riid with the interface IDs implemented by this object. * 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) ||
(memcmp(&IID_IDataAdviseHolder, riid, sizeof(IID_IDataAdviseHolder)) == 0) ) IsEqualIID(&IID_IDataAdviseHolder, riid) )
{ {
*ppvObject = iface; *ppvObject = iface;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment