Andrew Talbot : dmusic: Remove unneeded casts.
Alexandre Julliard
julliard at winehq.org
Sat Dec 8 13:43:38 CST 2007
Module: wine
Branch: master
Commit: 8a4db52f2a43f0a533d4bc7d07dc79b3278a1a57
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8a4db52f2a43f0a533d4bc7d07dc79b3278a1a57
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Sat Dec 8 15:33:51 2007 +0000
dmusic: Remove unneeded casts.
---
dlls/dmusic/collection.c | 2 +-
dlls/dmusic/dmusic.c | 2 +-
dlls/dmusic/dmusic_main.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
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-cvs
mailing list