Commit 3c9bd6ba authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

dsound: Don't copy the notify object on duplicate.

parent 223406fa
......@@ -1213,6 +1213,7 @@ HRESULT IDirectSoundBufferImpl_Duplicate(
dsb->ref = 0;
dsb->state = STATE_STOPPED;
dsb->buf_mixpos = dsb->sec_mixpos = 0;
dsb->notify = NULL;
dsb->device = device;
dsb->ds3db = NULL;
dsb->iks = NULL; /* FIXME? */
......
......@@ -1185,7 +1185,6 @@ static HRESULT test_duplicate(LPGUID lpGuid)
event,WAIT_OBJECT_0+1);
ref=IDirectSoundNotify_Release(dup_notify);
todo_wine
ok(ref==0,"IDirectSoundNotify_Release() has %d references, "
"should have 0\n",ref);
}
......
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