dswave: Finish the cleanup of create_dswave().
This commit is contained in:
parent
7370bed714
commit
e444c31f9e
|
@ -428,8 +428,8 @@ HRESULT WINAPI create_dswave(REFIID lpcGUID, void **ppobj)
|
|||
IDirectMusicWaveImpl *obj;
|
||||
HRESULT hr;
|
||||
|
||||
obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicWaveImpl));
|
||||
if (NULL == obj) {
|
||||
obj = HeapAlloc(GetProcessHeap(), 0, sizeof(IDirectMusicWaveImpl));
|
||||
if (!obj) {
|
||||
*ppobj = NULL;
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue