Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b23450e3
Commit
b23450e3
authored
Oct 14, 2012
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Oct 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Handle broken E_FAIL of broken AC97 driver.
parent
45c56bcc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
dsound.c
dlls/dsound/tests/dsound.c
+3
-2
No files found.
dlls/dsound/tests/dsound.c
View file @
b23450e3
...
@@ -1535,7 +1535,7 @@ static void test_hw_buffers(void)
...
@@ -1535,7 +1535,7 @@ static void test_hw_buffers(void)
trace
(
"dwMaxHwMixingStreamingBuffers: %u
\n
"
,
caps
.
dwMaxHwMixingStreamingBuffers
);
trace
(
"dwMaxHwMixingStreamingBuffers: %u
\n
"
,
caps
.
dwMaxHwMixingStreamingBuffers
);
for
(
i
=
0
;
i
<
caps
.
dwMaxHwMixingAllBuffers
;
++
i
){
for
(
i
=
0
;
i
<
caps
.
dwMaxHwMixingAllBuffers
;
++
i
){
hr
=
IDirectSound_CreateSoundBuffer
(
ds
,
&
bufdesc
,
&
secondaries
[
i
],
NULL
);
hr
=
IDirectSound_CreateSoundBuffer
(
ds
,
&
bufdesc
,
&
secondaries
[
i
],
NULL
);
ok
(
hr
==
S_OK
||
hr
==
E_NOTIMPL
||
broken
(
hr
==
DSERR_CONTROLUNAVAIL
),
ok
(
hr
==
S_OK
||
hr
==
E_NOTIMPL
||
broken
(
hr
==
DSERR_CONTROLUNAVAIL
)
||
broken
(
hr
==
E_FAIL
)
,
"CreateSoundBuffer(%u) failed: %08x
\n
"
,
i
,
hr
);
"CreateSoundBuffer(%u) failed: %08x
\n
"
,
i
,
hr
);
if
(
hr
!=
S_OK
)
if
(
hr
!=
S_OK
)
break
;
break
;
...
@@ -1553,8 +1553,9 @@ static void test_hw_buffers(void)
...
@@ -1553,8 +1553,9 @@ static void test_hw_buffers(void)
(
caps
.
dwMaxHwMixingAllBuffers
==
0
&&
hr
==
DSERR_INVALIDCALL
)
||
/* no hw buffers at all */
(
caps
.
dwMaxHwMixingAllBuffers
==
0
&&
hr
==
DSERR_INVALIDCALL
)
||
/* no hw buffers at all */
hr
==
E_NOTIMPL
||
/* don't support hw buffers */
hr
==
E_NOTIMPL
||
/* don't support hw buffers */
broken
(
hr
==
DSERR_CONTROLUNAVAIL
)
||
/* vmware winxp, others? */
broken
(
hr
==
DSERR_CONTROLUNAVAIL
)
||
/* vmware winxp, others? */
broken
(
hr
==
E_FAIL
)
||
/* broken AC97 driver */
broken
(
hr
==
S_OK
)
/* broken driver allows more hw bufs than dscaps claims */
,
broken
(
hr
==
S_OK
)
/* broken driver allows more hw bufs than dscaps claims */
,
"CreateSoundBuffer
gave wrong error: %08x
\n
"
,
hr
);
"CreateSoundBuffer
(%u) gave wrong error: %08x
\n
"
,
i
,
hr
);
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
IDirectSoundBuffer_Release
(
secondary
);
IDirectSoundBuffer_Release
(
secondary
);
...
...
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