dsound: Don't copy the notify object on duplicate.
This commit is contained in:
parent
223406fa17
commit
3c9bd6ba2a
|
@ -1213,6 +1213,7 @@ HRESULT IDirectSoundBufferImpl_Duplicate(
|
||||||
dsb->ref = 0;
|
dsb->ref = 0;
|
||||||
dsb->state = STATE_STOPPED;
|
dsb->state = STATE_STOPPED;
|
||||||
dsb->buf_mixpos = dsb->sec_mixpos = 0;
|
dsb->buf_mixpos = dsb->sec_mixpos = 0;
|
||||||
|
dsb->notify = NULL;
|
||||||
dsb->device = device;
|
dsb->device = device;
|
||||||
dsb->ds3db = NULL;
|
dsb->ds3db = NULL;
|
||||||
dsb->iks = NULL; /* FIXME? */
|
dsb->iks = NULL; /* FIXME? */
|
||||||
|
|
|
@ -1185,7 +1185,6 @@ static HRESULT test_duplicate(LPGUID lpGuid)
|
||||||
event,WAIT_OBJECT_0+1);
|
event,WAIT_OBJECT_0+1);
|
||||||
|
|
||||||
ref=IDirectSoundNotify_Release(dup_notify);
|
ref=IDirectSoundNotify_Release(dup_notify);
|
||||||
todo_wine
|
|
||||||
ok(ref==0,"IDirectSoundNotify_Release() has %d references, "
|
ok(ref==0,"IDirectSoundNotify_Release() has %d references, "
|
||||||
"should have 0\n",ref);
|
"should have 0\n",ref);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue