From 02602bd3cfa33514c3b2fe2418001bd35977a506 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 14 Jan 2009 09:52:15 +0100 Subject: [PATCH] dswave: Remove superfluous pointer casts. --- dlls/dswave/dswave.c | 8 ++++---- dlls/dswave/dswave_main.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/dswave/dswave.c b/dlls/dswave/dswave.c index 0b37b24512b..6e0f9851589 100644 --- a/dlls/dswave/dswave.c +++ b/dlls/dswave/dswave.c @@ -41,21 +41,21 @@ static HRESULT WINAPI IDirectMusicWaveImpl_IUnknown_QueryInterface (LPUNKNOWN if TRACE("(%p, %s, %p)\n", This, debugstr_dmguid(riid), ppobj); if (IsEqualIID (riid, &IID_IUnknown)) { - *ppobj = (LPVOID)&This->UnknownVtbl; + *ppobj = &This->UnknownVtbl; IDirectMusicWaveImpl_IUnknown_AddRef ((LPUNKNOWN)&This->UnknownVtbl); return S_OK; } else if (IsEqualIID (riid, &IID_IDirectMusicSegment) || IsEqualIID (riid, &IID_IDirectMusicSegment2) || IsEqualIID (riid, &IID_IDirectMusicSegment8)) { - *ppobj = (LPVOID)&This->SegmentVtbl; + *ppobj = &This->SegmentVtbl; IDirectMusicWaveImpl_IDirectMusicSegment8_AddRef ((LPDIRECTMUSICSEGMENT8)&This->SegmentVtbl); return S_OK; } else if (IsEqualIID (riid, &IID_IDirectMusicObject)) { - *ppobj = (LPVOID)&This->ObjectVtbl; + *ppobj = &This->ObjectVtbl; IDirectMusicWaveImpl_IDirectMusicObject_AddRef ((LPDIRECTMUSICOBJECT)&This->ObjectVtbl); return S_OK; } else if (IsEqualIID (riid, &IID_IPersistStream)) { - *ppobj = (LPVOID)&This->PersistStreamVtbl; + *ppobj = &This->PersistStreamVtbl; IDirectMusicWaveImpl_IPersistStream_AddRef ((LPPERSISTSTREAM)&This->PersistStreamVtbl); return S_OK; } else if (IsEqualIID (riid, &IID_IDirectMusicWavePRIVATE)) { diff --git a/dlls/dswave/dswave_main.c b/dlls/dswave/dswave_main.c index 69671c51c58..b907e9e599b 100644 --- a/dlls/dswave/dswave_main.c +++ b/dlls/dswave/dswave_main.c @@ -119,7 +119,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) { TRACE("(%s, %s, %p)\n", debugstr_dmguid(rclsid), debugstr_dmguid(riid), ppv); if (IsEqualCLSID (rclsid, &CLSID_DirectSoundWave) && IsEqualIID (riid, &IID_IClassFactory)) { - *ppv = (LPVOID) &Wave_CF; + *ppv = &Wave_CF; IClassFactory_AddRef((IClassFactory*)*ppv); return S_OK; }