Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0e5dcc2c
Commit
0e5dcc2c
authored
Dec 21, 2015
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
86c09714
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
dsound.c
dlls/dsound/dsound.c
+5
-0
ds3d8.c
dlls/dsound/tests/ds3d8.c
+0
-1
No files found.
dlls/dsound/dsound.c
View file @
0e5dcc2c
...
...
@@ -542,6 +542,11 @@ static HRESULT DirectSoundDevice_CreateSoundBuffer(
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
);
if
(
dsb
)
{
*
ppdsb
=
(
IDirectSoundBuffer
*
)
&
dsb
->
IDirectSoundBuffer8_iface
;
...
...
dlls/dsound/tests/ds3d8.c
View file @
0e5dcc2c
...
...
@@ -654,7 +654,6 @@ static HRESULT test_secondary8(LPGUID lpGuid, BOOL play,
/* Invalid flag combination */
bufdesc
.
dwFlags
|=
DSBCAPS_CTRLPAN
;
rc
=
IDirectSound8_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
secondary
,
NULL
);
todo_wine
ok
(
rc
==
DSERR_INVALIDPARAM
,
"IDirectSound8_CreateSoundBuffer(secondary) should have "
"returned DSERR_INVALIDPARAM, returned %08x
\n
"
,
rc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment