dsound: Unset variable on failure in IKsBufferPropertySetImpl_Create.
This commit is contained in:
parent
58c55881be
commit
faa29e9238
|
@ -200,6 +200,7 @@ HRESULT IKsBufferPropertySetImpl_Create(
|
||||||
PIDSDRIVERPROPERTYSET ps = NULL;
|
PIDSDRIVERPROPERTYSET ps = NULL;
|
||||||
IKsBufferPropertySetImpl *iks;
|
IKsBufferPropertySetImpl *iks;
|
||||||
TRACE("(%p,%p)\n",dsb,piks);
|
TRACE("(%p,%p)\n",dsb,piks);
|
||||||
|
*piks = NULL;
|
||||||
|
|
||||||
if (!dsb->hwbuf)
|
if (!dsb->hwbuf)
|
||||||
return DSERR_INVALIDPARAM;
|
return DSERR_INVALIDPARAM;
|
||||||
|
|
Loading…
Reference in New Issue