oleaut32/tests: Use IsEqualIID instead of memcmp to compare REFIIDs.

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

View File

@ -939,11 +939,11 @@ static HRESULT WINAPI NoStatStreamImpl_QueryInterface(
NoStatStreamImpl* const This=(NoStatStreamImpl*)iface;
if (ppvObject==0) return E_INVALIDARG;
*ppvObject = 0;
if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0)
if (IsEqualIID(&IID_IUnknown, riid))
{
*ppvObject = This;
}
else if (memcmp(&IID_IStream, riid, sizeof(IID_IStream)) == 0)
else if (IsEqualIID(&IID_IStream, riid))
{
*ppvObject = This;
}