ole32: Use IsEqualIID instead of memcmp to compare REFIIDs.

This commit is contained in:
Michael Stefaniuc 2010-07-23 11:30:00 +02:00 committed by Alexandre Julliard
parent c2c98ae0c2
commit ffac31da09
2 changed files with 3 additions and 4 deletions

View File

@ -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;
/*

View File

@ -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;
}