dmsynth: Do not cast NULL.

Michael Stefaniuc mstefani at redhat.de
Sat Nov 1 18:24:07 CDT 2008


---
 dlls/dmsynth/synth.c     |    2 +-
 dlls/dmsynth/synthsink.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dmsynth/synth.c b/dlls/dmsynth/synth.c
index 26d66fe..c85b711 100644
--- a/dlls/dmsynth/synth.c
+++ b/dlls/dmsynth/synth.c
@@ -239,7 +239,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicSynthImpl (LPCGUID lpcGUID, LPVOID* ppobj
 	TRACE("(%p,%p,%p)\n", lpcGUID, ppobj, pUnkOuter);
 	obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicSynth8Impl));
 	if (NULL == obj) {
-		*ppobj = (LPDIRECTMUSICSYNTH8) NULL;
+		*ppobj = NULL;
 		return E_OUTOFMEMORY;
 	}
 	obj->lpVtbl = &DirectMusicSynth8_Vtbl;
diff --git a/dlls/dmsynth/synthsink.c b/dlls/dmsynth/synthsink.c
index eb45839..c017957 100644
--- a/dlls/dmsynth/synthsink.c
+++ b/dlls/dmsynth/synthsink.c
@@ -132,7 +132,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicSynthSinkImpl (LPCGUID lpcGUID, LPVOID* p
 	TRACE("(%p,%p,%p)\n", lpcGUID, ppobj, pUnkOuter);
 	obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicSynthSinkImpl));
 	if (NULL == obj) {
-		*ppobj = (LPDIRECTMUSICSYNTHSINK) NULL;
+		*ppobj = NULL;
 		return E_OUTOFMEMORY;
 	}
 	obj->lpVtbl = &DirectMusicSynthSink_Vtbl;
-- 
1.6.0.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081102/8f28fab2/attachment.pgp 


More information about the wine-patches mailing list