hlink: Remove superfluous pointer casts.

This commit is contained in:
Michael Stefaniuc 2009-01-27 11:36:33 +01:00 committed by Alexandre Julliard
parent 905ff8fdaa
commit b4d65f595e
2 changed files with 7 additions and 8 deletions

View File

@ -40,10 +40,10 @@ typedef struct {
LPWSTR headers;
} ExtensionService;
#define EXTSERVUNK(x) ((IUnknown*) &(x)->lpIUnknownVtbl)
#define AUTHENTICATE(x) ((IAuthenticate*) &(x)->lpIAuthenticateVtbl)
#define HTTPNEGOTIATE(x) ((IHttpNegotiate*) &(x)->lpIHttpNegotiateVtbl)
#define EXTENSIONSERVICES(x) ((IExtensionServices*) &(x)->lpIExtensionServicesVtbl)
#define EXTSERVUNK(x) ((IUnknown*)&(x)->lpIUnknownVtbl)
#define AUTHENTICATE(x) (&(x)->lpIAuthenticateVtbl)
#define HTTPNEGOTIATE(x) (&(x)->lpIHttpNegotiateVtbl)
#define EXTENSIONSERVICES(x) (&(x)->lpIExtensionServicesVtbl)
#define EXTSERVUNK_THIS(iface) DEFINE_THIS(ExtensionService, IUnknown, iface)

View File

@ -82,8 +82,7 @@ static inline void __GetMoniker(HlinkImpl* This, IMoniker** moniker)
else if (This->Site)
{
IHlinkSite_GetMoniker(This->Site, This->SiteData,
OLEGETMONIKER_FORCEASSIGN, OLEWHICHMK_CONTAINER,
(LPVOID)moniker);
OLEGETMONIKER_FORCEASSIGN, OLEWHICHMK_CONTAINER, moniker);
}
}
@ -123,9 +122,9 @@ static HRESULT WINAPI IHlink_fnQueryInterface(IHlink* iface, REFIID riid,
if (IsEqualIID(riid, &IID_IUnknown) || (IsEqualIID(riid, &IID_IHlink)))
*ppvObj = This;
else if (IsEqualIID(riid, &IID_IPersistStream))
*ppvObj = (LPVOID*)&(This->lpPSVtbl);
*ppvObj = &(This->lpPSVtbl);
else if (IsEqualIID(riid, &IID_IDataObject))
*ppvObj = (LPVOID*)&(This->lpDOVtbl);
*ppvObj = &(This->lpDOVtbl);
if (*ppvObj)
{