dmsynth: Do not cast NULL.

This commit is contained in:
Michael Stefaniuc 2008-11-02 00:24:07 +01:00 committed by Alexandre Julliard
parent d62b48df2a
commit b963dd0076
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;