Module: wine Branch: refs/heads/master Commit: 269909f53e902014a6c1a5b92689269ec684d424 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=269909f53e902014a6c1a5b9...
Author: Robert Shearman rob@codeweavers.com Date: Wed Mar 1 12:17:00 2006 +0000
oleaut: Use IsEqualIID in connpt.c instead of memcmp for comparing IIDs.
---
dlls/oleaut32/connpt.c | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/dlls/oleaut32/connpt.c b/dlls/oleaut32/connpt.c index da0ffcc..78f4117 100644 --- a/dlls/oleaut32/connpt.c +++ b/dlls/oleaut32/connpt.c @@ -160,14 +160,10 @@ static HRESULT WINAPI ConnectionPointImp /* * Compare the riid with the interface IDs implemented by this object. */ - if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0) - { + if (IsEqualIID(&IID_IUnknown, riid)) *ppvObject = (IConnectionPoint*)This; - } - else if (memcmp(&IID_IConnectionPoint, riid, sizeof(IID_IConnectionPoint)) == 0) - { + else if (IsEqualIID(&IID_IConnectionPoint, riid)) *ppvObject = (IConnectionPoint*)This; - }
/* * Check that we obtained an interface. @@ -433,14 +429,10 @@ static HRESULT WINAPI EnumConnectionsImp /* * Compare the riid with the interface IDs implemented by this object. */ - if (memcmp(&IID_IUnknown, riid, sizeof(IID_IUnknown)) == 0) - { + if (IsEqualIID(&IID_IUnknown, riid)) *ppvObject = (IEnumConnections*)This; - } - else if (memcmp(&IID_IEnumConnections, riid, sizeof(IID_IEnumConnections)) == 0) - { + else if (IsEqualIID(&IID_IEnumConnections, riid)) *ppvObject = (IEnumConnections*)This; - }
/* * Check that we obtained an interface.