From 63cbef27a21f937ac61471c566b54d173d623cae Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Tue, 1 Aug 2006 03:10:58 +0900 Subject: [PATCH] ole32: Use IsGUIDEqual to compare IIDs. --- dlls/ole32/storage32.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index acc41c4a507..fd252d85ba0 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -199,15 +199,12 @@ static HRESULT WINAPI StorageBaseImpl_QueryInterface( /* * Compare the riid with the interface IDs implemented by this object. */ - if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0) + if (IsEqualGUID(&IID_IUnknown, riid) || + IsEqualGUID(&IID_IStorage, riid)) { *ppvObject = (IStorage*)This; } - else if (memcmp(&IID_IStorage, riid, sizeof(IID_IStorage)) == 0) - { - *ppvObject = (IStorage*)This; - } - else if (memcmp(&IID_IPropertySetStorage, riid, sizeof(IID_IPropertySetStorage)) == 0) + else if (IsEqualGUID(&IID_IPropertySetStorage, riid)) { *ppvObject = (IStorage*)&This->pssVtbl; }