From e444c31f9ef3a81d7750d3c70fa2f3eca84e80bd Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Wed, 10 Jun 2015 01:07:49 +0200 Subject: [PATCH] dswave: Finish the cleanup of create_dswave(). --- dlls/dswave/dswave.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/dswave/dswave.c b/dlls/dswave/dswave.c index b93908dbaa5..01276345704 100644 --- a/dlls/dswave/dswave.c +++ b/dlls/dswave/dswave.c @@ -425,14 +425,14 @@ 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) { - *ppobj = NULL; - return E_OUTOFMEMORY; - } + obj = HeapAlloc(GetProcessHeap(), 0, sizeof(IDirectMusicWaveImpl)); + if (!obj) { + *ppobj = NULL; + return E_OUTOFMEMORY; + } obj->IUnknown_iface.lpVtbl = &unknown_vtbl; obj->ref = 1; dmobject_init(&obj->dmobj, &CLSID_DirectSoundWave, &obj->IUnknown_iface);