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

This commit is contained in:
Akihiro Sagawa 2011-07-21 21:53:46 +09:00 committed by Alexandre Julliard
parent 223406fa17
commit 3c9bd6ba2a
2 changed files with 1 additions and 1 deletions

View File

@ -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? */

View File

@ -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);
}