dsound: Primary buffers don't support IDirectSoundNotify.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
126d3b703b
commit
b21b6ad717
|
@ -1101,7 +1101,6 @@ static HRESULT WINAPI PrimaryBufferImpl_QueryInterface(IDirectSoundBuffer8 *ifac
|
|||
|
||||
if ( IsEqualGUID( &IID_IDirectSoundNotify, riid ) ) {
|
||||
ERR("app requested IDirectSoundNotify on primary buffer\n");
|
||||
/* FIXME: should we support this? */
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
|
|
@ -465,6 +465,7 @@ static HRESULT test_primary(LPGUID lpGuid)
|
|||
trace(" No Primary\n");
|
||||
else if (rc==DS_OK && primary!=NULL) {
|
||||
LONG vol;
|
||||
IDirectSoundNotify *notify;
|
||||
|
||||
/* Try to create a second primary buffer */
|
||||
/* DSOUND: Error: The primary buffer already exists.
|
||||
|
@ -509,8 +510,10 @@ static HRESULT test_primary(LPGUID lpGuid)
|
|||
ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references\n",ref);
|
||||
|
||||
ref=IDirectSoundBuffer_Release(primary);
|
||||
ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references, "
|
||||
"should have 0\n",ref);
|
||||
ok(ref==0,"IDirectSoundBuffer_Release() primary has %d references\n",ref);
|
||||
|
||||
rc=IDirectSoundBuffer_QueryInterface(primary,&IID_IDirectSoundNotify,(void **)¬ify);
|
||||
ok(rc==E_NOINTERFACE,"IDirectSoundBuffer_QueryInterface() failed %08x\n",rc);
|
||||
}
|
||||
|
||||
/* Set the CooperativeLevel back to normal */
|
||||
|
|
Loading…
Reference in New Issue