Commit 468477b6 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

dsound: Avoid NULL pointer dereference (Coverity).

parent 0df38064
......@@ -1205,9 +1205,9 @@ HRESULT IDirectSoundBufferImpl_Duplicate(
HeapFree(GetProcessHeap(),0,dsb->pwfx);
HeapFree(GetProcessHeap(),0,dsb);
dsb = NULL;
}
}else
IDirectSoundBuffer8_AddRef(&dsb->IDirectSoundBuffer8_iface);
IDirectSoundBuffer8_AddRef(&dsb->IDirectSoundBuffer8_iface);
*ppdsb = dsb;
return hres;
}
......
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