Mercurial > projects > dwt-win
comparison dwt/ole/win32/OleEventSink.d @ 301:244e3774d515
Fixed missing casts to interface types.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 28 Aug 2008 15:57:57 +0200 |
parents | fd9c62a2998e |
children |
comparison
equal
deleted
inserted
replaced
300:acf6957f2344 | 301:244e3774d515 |
---|---|
149 if (riid is null || ppvObject is null) | 149 if (riid is null || ppvObject is null) |
150 return COM.E_INVALIDARG; | 150 return COM.E_INVALIDARG; |
151 | 151 |
152 if ( COM.IsEqualGUID(riid, &COM.IIDIUnknown) || COM.IsEqualGUID(riid, &COM.IIDIDispatch) || | 152 if ( COM.IsEqualGUID(riid, &COM.IIDIUnknown) || COM.IsEqualGUID(riid, &COM.IIDIDispatch) || |
153 COM.IsEqualGUID(riid, eventGuid)) { | 153 COM.IsEqualGUID(riid, eventGuid)) { |
154 *ppvObject = cast(void*)iDispatch; | 154 *ppvObject = cast(void*)cast(IDispatch)iDispatch; |
155 AddRef(); | 155 AddRef(); |
156 return OLE.S_OK; | 156 return OLE.S_OK; |
157 } | 157 } |
158 | 158 |
159 *ppvObject = null; | 159 *ppvObject = null; |