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
0872572a
Commit
0872572a
authored
Feb 13, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Fix the capture COM tests for older Win2k versions.
parent
011a3523
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 @
0872572a
...
...
@@ -695,9 +695,15 @@ static void test_COM(void)
bufdesc
.
lpwfxFormat
=
&
wfx
;
hr
=
IDirectSoundCapture_CreateCaptureBuffer
(
dsc
,
&
bufdesc
,
&
buffer
,
(
IUnknown
*
)
0xdeadbeef
);
if
(
hr
==
E_INVALIDARG
)
{
/* Old DirectX has only the 1st version of the DSCBUFFERDESC struct */
bufdesc
.
dwSize
=
sizeof
(
DSCBUFFERDESC1
);
hr
=
IDirectSoundCapture_CreateCaptureBuffer
(
dsc
,
&
bufdesc
,
&
buffer
,
(
IUnknown
*
)
0xdeadbeef
);
}
ok
(
hr
==
DSERR_NOAGGREGATION
,
"IDirectSoundCapture_CreateCaptureBuffer failed: %08x, expected DSERR_NOAGGREGATION
\n
"
,
hr
);
ok
(
buffer
==
(
IDirectSoundCaptureBuffer
*
)
0xdeadbeef
,
"buffer = %p
\n
"
,
buffer
);
ok
(
buffer
==
(
IDirectSoundCaptureBuffer
*
)
0xdeadbeef
||
!
buffer
/* Win2k without DirectX9 */
,
"buffer = %p
\n
"
,
buffer
);
hr
=
IDirectSoundCapture_CreateCaptureBuffer
(
dsc
,
&
bufdesc
,
&
buffer
,
NULL
);
ok
(
hr
==
DS_OK
,
"IDirectSoundCapture_CreateCaptureBuffer failed: %08x, expected DS_OK
\n
"
,
hr
);
...
...
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