dmsynth: Do not cast NULL.
This commit is contained in:
parent
d62b48df2a
commit
b963dd0076
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue