From bd132fed1e64bf77857f7d358268a346787e550b Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 23 Jul 2010 11:30:10 +0200 Subject: [PATCH] oleaut32/tests: Use IsEqualIID instead of memcmp to compare REFIIDs. --- dlls/oleaut32/tests/olepicture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/oleaut32/tests/olepicture.c b/dlls/oleaut32/tests/olepicture.c index 22594376793..f00055ef036 100644 --- a/dlls/oleaut32/tests/olepicture.c +++ b/dlls/oleaut32/tests/olepicture.c @@ -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; }