Michael Stefaniuc : dmband: Remove superfluous casts.
Alexandre Julliard
julliard at winehq.org
Thu Jan 8 08:30:43 CST 2009
Module: wine
Branch: master
Commit: b91f72ec9b4db154fca221cc343bc8d3e79b7508
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b91f72ec9b4db154fca221cc343bc8d3e79b7508
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Jan 8 00:38:34 2009 +0100
dmband: Remove superfluous casts.
---
dlls/dmband/band.c | 8 ++++----
dlls/dmband/bandtrack.c | 4 ++--
dlls/dmband/dmband_main.c | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dlls/dmband/band.c b/dlls/dmband/band.c
index 891fb5a..c2e56f6 100644
--- a/dlls/dmband/band.c
+++ b/dlls/dmband/band.c
@@ -32,19 +32,19 @@ static HRESULT WINAPI IDirectMusicBandImpl_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;
IUnknown_AddRef (iface);
return S_OK;
} else if (IsEqualIID (riid, &IID_IDirectMusicBand)) {
- *ppobj = (LPVOID)&This->BandVtbl;
+ *ppobj = &This->BandVtbl;
IUnknown_AddRef (iface);
return S_OK;
} else if (IsEqualIID (riid, &IID_IDirectMusicObject)) {
- *ppobj = (LPVOID)&This->ObjectVtbl;
+ *ppobj = &This->ObjectVtbl;
IUnknown_AddRef (iface);
return S_OK;
} else if (IsEqualIID (riid, &IID_IPersistStream)) {
- *ppobj = (LPVOID)&This->PersistStreamVtbl;
+ *ppobj = &This->PersistStreamVtbl;
IUnknown_AddRef (iface);
return S_OK;
}
diff --git a/dlls/dmband/bandtrack.c b/dlls/dmband/bandtrack.c
index b328b1d..54496e1 100644
--- a/dlls/dmband/bandtrack.c
+++ b/dlls/dmband/bandtrack.c
@@ -31,7 +31,7 @@ static HRESULT WINAPI IDirectMusicBandTrack_IUnknown_QueryInterface (LPUNKNOWN i
TRACE("(%p, %s, %p)\n", This, debugstr_dmguid(riid), ppobj);
if (IsEqualIID (riid, &IID_IUnknown)) {
- *ppobj = (LPUNKNOWN)&This->UnknownVtbl;
+ *ppobj = &This->UnknownVtbl;
IUnknown_AddRef (iface);
return S_OK;
} else if (IsEqualIID (riid, &IID_IDirectMusicTrack)
@@ -40,7 +40,7 @@ static HRESULT WINAPI IDirectMusicBandTrack_IUnknown_QueryInterface (LPUNKNOWN i
IUnknown_AddRef (iface);
return S_OK;
} else if (IsEqualIID (riid, &IID_IPersistStream)) {
- *ppobj = (LPPERSISTSTREAM)&This->PersistStreamVtbl;
+ *ppobj = &This->PersistStreamVtbl;
IUnknown_AddRef (iface);
return S_OK;
}
diff --git a/dlls/dmband/dmband_main.c b/dlls/dmband/dmband_main.c
index 6a49f70..b99f64d 100644
--- a/dlls/dmband/dmband_main.c
+++ b/dlls/dmband/dmband_main.c
@@ -168,11 +168,11 @@ 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_DirectMusicBand) && IsEqualIID (riid, &IID_IClassFactory)) {
- *ppv = (LPVOID) &Band_CF;
+ *ppv = &Band_CF;
IClassFactory_AddRef((IClassFactory*)*ppv);
return S_OK;
} else if (IsEqualCLSID (rclsid, &CLSID_DirectMusicBandTrack) && IsEqualIID (riid, &IID_IClassFactory)) {
- *ppv = (LPVOID) &BandTrack_CF;
+ *ppv = &BandTrack_CF;
IClassFactory_AddRef((IClassFactory*)*ppv);
return S_OK;
}
More information about the wine-cvs
mailing list