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

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

View File

@ -1214,6 +1214,8 @@ HRESULT IDirectSoundBufferImpl_Duplicate(
dsb->state = STATE_STOPPED;
dsb->buf_mixpos = dsb->sec_mixpos = 0;
dsb->notify = NULL;
dsb->notifies = NULL;
dsb->nrofnotifies = 0;
dsb->device = device;
dsb->ds3db = NULL;
dsb->iks = NULL; /* FIXME? */

View File

@ -1063,12 +1063,7 @@ static HRESULT test_notify(LPDIRECTSOUNDBUFFER dsb,
return rc;
ret=WaitForMultipleObjects(count,event,FALSE,0);
if (expected != WAIT_OBJECT_0+1) {
todo_wine
ok(ret==expected,"expected %d. got %d\n",expected,ret);
}
else
ok(ret==expected,"expected %d. got %d\n",expected,ret);
ok(ret==expected,"expected %d. got %d\n",expected,ret);
return rc;
}