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
d66722db
Commit
d66722db
authored
Nov 10, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Fix tests after addition of 24/32 bits buffer tests.
parent
3f965d58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
capture.c
dlls/dsound/tests/capture.c
+7
-1
No files found.
dlls/dsound/tests/capture.c
View file @
d66722db
...
...
@@ -603,7 +603,7 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
trace
(
" Testing the capture buffer at %s
\n
"
,
format_string
(
&
wfx
));
rc
=
IDirectSoundCapture_CreateCaptureBuffer
(
dsco
,
&
bufdesc
,
&
dscbo
,
NULL
);
ok
(((
rc
==
DS_OK
)
&&
(
dscbo
!=
NULL
))
||
(
rc
==
DSERR_BADFORMAT
)
||
((
rc
==
DSERR_NODRIVER
))
||
(
rc
==
DSERR_ALLOCATED
)
||
(
rc
==
E_INVALIDARG
),
((
rc
==
DSERR_NODRIVER
))
||
(
rc
==
DSERR_ALLOCATED
)
||
(
rc
==
E_INVALIDARG
)
||
(
rc
==
E_FAIL
)
,
"IDirectSoundCapture_CreateCaptureBuffer() failed to create a "
"%s capture buffer: %s
\n
"
,
format_string
(
&
wfx
),
DXGetErrorString8
(
rc
));
if
(
rc
==
DS_OK
)
{
...
...
@@ -641,6 +641,12 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
ok
(
ref
==
0
,
"IDirectSoundCaptureBuffer_Release() has %d "
"references, should have 0
\n
"
,
ref
);
}
}
else
if
(
rc
==
E_FAIL
)
{
/* WAVE_FORMAT_PCM only allows 8 and 16 bits per sample, so only
* report a failure if the bits per sample is 8 or 16
*/
if
(
wfx
.
wBitsPerSample
==
8
||
wfx
.
wBitsPerSample
==
16
)
ok
(
FALSE
,
"Should not fail for 8 or 16 bits per sample
\n
"
);
}
}
...
...
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