ole32: Use IsEqualIID instead of memcmp in HGLOBALLockBytesImpl_QueryInterface.
This commit is contained in:
parent
0101f89a8d
commit
29706e6709
|
@ -286,11 +286,8 @@ static HRESULT WINAPI HGLOBALLockBytesImpl_QueryInterface(
|
|||
/*
|
||||
* Compare the riid with the interface IDs implemented by this object.
|
||||
*/
|
||||
if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0)
|
||||
{
|
||||
*ppvObject = (ILockBytes*)This;
|
||||
}
|
||||
else if (memcmp(&IID_ILockBytes, riid, sizeof(IID_ILockBytes)) == 0)
|
||||
if (IsEqualIID(riid, &IID_IUnknown) ||
|
||||
IsEqualIID(riid, &IID_ILockBytes))
|
||||
{
|
||||
*ppvObject = (ILockBytes*)This;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue