Michael Stefaniuc : dmsynth: Do not cast NULL.

Alexandre Julliard julliard at winehq.org
Mon Nov 3 09:06:57 CST 2008


Module: wine
Branch: master
Commit: b963dd0076a886223d01af07ee48012c460d9abb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b963dd0076a886223d01af07ee48012c460d9abb

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Nov  2 00:24:07 2008 +0100

dmsynth: Do not cast NULL.

---

 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;




More information about the wine-cvs mailing list