dmusic: Remove unneeded casts

Andrew Talbot andrew.talbot at talbotville.com
Sat Dec 8 09:33:51 CST 2007


Changelog:
    dmusic: Remove unneeded casts.

diff --git a/dlls/dmusic/collection.c b/dlls/dmusic/collection.c
index d9ef658..06842c5 100644
--- a/dlls/dmusic/collection.c
+++ b/dlls/dmusic/collection.c
@@ -118,7 +118,7 @@ static HRESULT WINAPI IDirectMusicCollectionImpl_IDirectMusicCollection_GetInstr
 		tmpEntry = LIST_ENTRY(listEntry, DMUS_PRIVATE_INSTRUMENTENTRY, entry);
 		IDirectMusicInstrument_GetPatch (tmpEntry->pInstrument, &dwInstPatch);
 		if (dwPatch == dwInstPatch) {
-			*ppInstrument = (LPDIRECTMUSICINSTRUMENT)tmpEntry->pInstrument;
+			*ppInstrument = tmpEntry->pInstrument;
 			IDirectMusicInstrument_AddRef (tmpEntry->pInstrument);
 			IDirectMusicInstrumentImpl_Custom_Load (tmpEntry->pInstrument, This->pStm); /* load instrument before returning it */
 			TRACE(": returning instrument %p\n", *ppInstrument);
diff --git a/dlls/dmusic/dmusic.c b/dlls/dmusic/dmusic.c
index b9f380d..34edce9 100644
--- a/dlls/dmusic/dmusic.c
+++ b/dlls/dmusic/dmusic.c
@@ -134,7 +134,7 @@ static HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLS
 			if (!This->ppPorts) This->ppPorts = HeapAlloc(GetProcessHeap(), 0, sizeof(LPDIRECTMUSICPORT) * This->nrofports);
 			else This->ppPorts = HeapReAlloc(GetProcessHeap(), 0, This->ppPorts, sizeof(LPDIRECTMUSICPORT) * This->nrofports); 			
 			This->ppPorts[This->nrofports - 1] = pNewPort;
-			*ppPort = (LPDIRECTMUSICPORT) pNewPort;
+			*ppPort = pNewPort;
 			return S_OK;			
 		}
 	}
diff --git a/dlls/dmusic/dmusic_main.c b/dlls/dmusic/dmusic_main.c
index 24901ba..2b62998 100644
--- a/dlls/dmusic/dmusic_main.c
+++ b/dlls/dmusic/dmusic_main.c
@@ -54,7 +54,7 @@ static ULONG WINAPI DirectMusicCF_Release(LPCLASSFACTORY iface) {
 
 static HRESULT WINAPI DirectMusicCF_CreateInstance(LPCLASSFACTORY iface, LPUNKNOWN pOuter, REFIID riid, LPVOID *ppobj) {
 	TRACE ("(%p, %s, %p)\n", pOuter, debugstr_dmguid(riid), ppobj);
-	return DMUSIC_CreateDirectMusicImpl (riid, (LPVOID*) ppobj, pOuter);
+	return DMUSIC_CreateDirectMusicImpl (riid, ppobj, pOuter);
 }
 
 static HRESULT WINAPI DirectMusicCF_LockServer(LPCLASSFACTORY iface,BOOL dolock) {



More information about the wine-patches mailing list