dsound: Fail to create a version 8 3d buffer with DSBCAPS_CTRLPAN.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
86c097142b
commit
0e5dcc2c84
@ -542,6 +542,11 @@ static HRESULT DirectSoundDevice_CreateSoundBuffer(
|
|||||||
return DSERR_INVALIDPARAM;
|
return DSERR_INVALIDPARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (from8 && (dsbd->dwFlags & DSBCAPS_CTRL3D) && (dsbd->dwFlags & DSBCAPS_CTRLPAN)) {
|
||||||
|
WARN("invalid parameter: DSBCAPS_CTRL3D and DSBCAPS_CTRLPAN cannot be used together\n");
|
||||||
|
return DSERR_INVALIDPARAM;
|
||||||
|
}
|
||||||
|
|
||||||
hres = IDirectSoundBufferImpl_Create(device, &dsb, dsbd);
|
hres = IDirectSoundBufferImpl_Create(device, &dsb, dsbd);
|
||||||
if (dsb) {
|
if (dsb) {
|
||||||
*ppdsb = (IDirectSoundBuffer*)&dsb->IDirectSoundBuffer8_iface;
|
*ppdsb = (IDirectSoundBuffer*)&dsb->IDirectSoundBuffer8_iface;
|
||||||
|
@ -654,7 +654,6 @@ static HRESULT test_secondary8(LPGUID lpGuid, BOOL play,
|
|||||||
/* Invalid flag combination */
|
/* Invalid flag combination */
|
||||||
bufdesc.dwFlags|=DSBCAPS_CTRLPAN;
|
bufdesc.dwFlags|=DSBCAPS_CTRLPAN;
|
||||||
rc=IDirectSound8_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
rc=IDirectSound8_CreateSoundBuffer(dso,&bufdesc,&secondary,NULL);
|
||||||
todo_wine
|
|
||||||
ok(rc==DSERR_INVALIDPARAM,
|
ok(rc==DSERR_INVALIDPARAM,
|
||||||
"IDirectSound8_CreateSoundBuffer(secondary) should have "
|
"IDirectSound8_CreateSoundBuffer(secondary) should have "
|
||||||
"returned DSERR_INVALIDPARAM, returned %08x\n", rc);
|
"returned DSERR_INVALIDPARAM, returned %08x\n", rc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user