dswave: Finish the cleanup of create_dswave().

This commit is contained in:
Michael Stefaniuc 2015-06-10 01:07:49 +02:00 committed by Alexandre Julliard
parent 7370bed714
commit e444c31f9e
1 changed files with 6 additions and 6 deletions

View File

@ -425,11 +425,11 @@ static const IPersistStreamVtbl persiststream_vtbl = {
/* for ClassFactory */
HRESULT WINAPI create_dswave(REFIID lpcGUID, void **ppobj)
{
IDirectMusicWaveImpl* obj;
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;
}