mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
ole32: Use IsEqualIID instead of memcmp in HGLOBALLockBytesImpl_QueryInterface.
This commit is contained in:
parent
0101f89a8d
commit
29706e6709
1 changed files with 2 additions and 5 deletions
|
@ -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 a new issue