Commit e444c31f authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dswave: Finish the cleanup of create_dswave().

parent 7370bed7
...@@ -425,14 +425,14 @@ static const IPersistStreamVtbl persiststream_vtbl = { ...@@ -425,14 +425,14 @@ static const IPersistStreamVtbl persiststream_vtbl = {
/* for ClassFactory */ /* for ClassFactory */
HRESULT WINAPI create_dswave(REFIID lpcGUID, void **ppobj) HRESULT WINAPI create_dswave(REFIID lpcGUID, void **ppobj)
{ {
IDirectMusicWaveImpl* obj; IDirectMusicWaveImpl *obj;
HRESULT hr; HRESULT hr;
obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicWaveImpl)); obj = HeapAlloc(GetProcessHeap(), 0, sizeof(IDirectMusicWaveImpl));
if (NULL == obj) { if (!obj) {
*ppobj = NULL; *ppobj = NULL;
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
} }
obj->IUnknown_iface.lpVtbl = &unknown_vtbl; obj->IUnknown_iface.lpVtbl = &unknown_vtbl;
obj->ref = 1; obj->ref = 1;
dmobject_init(&obj->dmobj, &CLSID_DirectSoundWave, &obj->IUnknown_iface); dmobject_init(&obj->dmobj, &CLSID_DirectSoundWave, &obj->IUnknown_iface);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment