Module: wine Branch: refs/heads/master Commit: 63cbef27a21f937ac61471c566b54d173d623cae URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=63cbef27a21f937ac61471c5...
Author: Mike McCormack mike@codeweavers.com Date: Tue Aug 1 03:10:58 2006 +0900
ole32: Use IsGUIDEqual to compare IIDs.
---
dlls/ole32/storage32.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index acc41c4..fd252d8 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -199,15 +199,12 @@ static HRESULT WINAPI StorageBaseImpl_Qu /* * Compare the riid with the interface IDs implemented by this object. */ - if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0) - { - *ppvObject = (IStorage*)This; - } - else if (memcmp(&IID_IStorage, riid, sizeof(IID_IStorage)) == 0) + if (IsEqualGUID(&IID_IUnknown, riid) || + IsEqualGUID(&IID_IStorage, riid)) { *ppvObject = (IStorage*)This; } - else if (memcmp(&IID_IPropertySetStorage, riid, sizeof(IID_IPropertySetStorage)) == 0) + else if (IsEqualGUID(&IID_IPropertySetStorage, riid)) { *ppvObject = (IStorage*)&This->pssVtbl; }