From 892f735930631a757aea84e9d7f5582d627a9b87 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 2 Nov 2008 00:24:00 +0100 Subject: [PATCH] dmusic: Do not cast NULL. --- dlls/dmusic/dmusic.c | 4 ++-- dlls/dmusic/port.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/dmusic/dmusic.c b/dlls/dmusic/dmusic.c index 34edce977b5..f37f8f61b07 100644 --- a/dlls/dmusic/dmusic.c +++ b/dlls/dmusic/dmusic.c @@ -127,7 +127,7 @@ static HRESULT WINAPI IDirectMusic8Impl_CreatePort (LPDIRECTMUSIC8 iface, REFCLS if (IsEqualCLSID (rclsidPort, &PortCaps.guidPort)) { hr = DMUSIC_CreateDirectMusicPortImpl(&IID_IDirectMusicPort, (LPVOID*) &pNewPort, (LPUNKNOWN) This, pPortParams, &PortCaps); if (FAILED(hr)) { - *ppPort = (LPDIRECTMUSICPORT) NULL; + *ppPort = NULL; return hr; } This->nrofports++; @@ -255,7 +255,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPU dmusic = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusic8Impl)); if (NULL == dmusic) { - *ppobj = (LPDIRECTMUSIC8) NULL; + *ppobj = NULL; return E_OUTOFMEMORY; } dmusic->lpVtbl = &DirectMusic8_Vtbl; diff --git a/dlls/dmusic/port.c b/dlls/dmusic/port.c index 83fda74e927..c8cb20ebbc0 100644 --- a/dlls/dmusic/port.c +++ b/dlls/dmusic/port.c @@ -243,8 +243,8 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPortImpl (LPCGUID lpcGUID, LPVOID *ppobj, TRACE("(%p,%p,%p)\n", lpcGUID, ppobj, pUnkOuter); obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicPortImpl)); - if (NULL == obj) { - *ppobj = (LPDIRECTMUSICPORT) NULL; + if (NULL == obj) { + *ppobj = NULL; return E_OUTOFMEMORY; } obj->lpVtbl = &DirectMusicPort_Vtbl; -- 2.11.4.GIT