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
7f8dfe98
Commit
7f8dfe98
authored
Jul 08, 2008
by
John Klehm
Committed by
Alexandre Julliard
Jul 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Accept DSERR_INVALIDCALL for CreateSoundBuffer failure.
parent
a85a5ffb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
dsound.c
dlls/dsound/tests/dsound.c
+5
-4
dsound8.c
dlls/dsound/tests/dsound8.c
+5
-4
No files found.
dlls/dsound/tests/dsound.c
View file @
7f8dfe98
...
...
@@ -716,9 +716,10 @@ static HRESULT test_secondary(LPGUID lpGuid)
if
(
gotdx8
||
wfx
.
wBitsPerSample
<=
16
)
{
if
(
wfx
.
wBitsPerSample
>
16
)
ok
(
rc
==
DSERR_CONTROLUNAVAIL
&&
!
secondary
,
"IDirectSound_CreateSoundBuffer() "
"should have returned DSERR_CONTROLUNAVAIL and NULL, returned: %08x %p
\n
"
,
rc
,
secondary
);
ok
((
rc
==
DSERR_CONTROLUNAVAIL
||
rc
==
DSERR_INVALIDCALL
)
&&
!
secondary
,
"IDirectSound_CreateSoundBuffer() "
"should have returned (DSERR_CONTROLUNAVAIL or DSERR_INVALIDCALL) "
"and NULL, returned: %08x %p
\n
"
,
rc
,
secondary
);
else
ok
(
rc
==
DS_OK
&&
secondary
!=
NULL
,
"IDirectSound_CreateSoundBuffer() failed to create a secondary buffer %08x
\n
"
,
rc
);
...
...
@@ -767,7 +768,7 @@ static HRESULT test_secondary(LPGUID lpGuid)
wfxe
.
Format
.
cbSize
=
sizeof
(
wfxe
)
-
sizeof
(
wfx
);
wfxe
.
SubFormat
=
GUID_NULL
;
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
secondary
,
NULL
);
ok
(
rc
==
DSERR_INVALIDPARAM
&&
!
secondary
,
ok
(
(
rc
==
DSERR_INVALIDPARAM
||
rc
==
DSERR_INVALIDCALL
)
&&
!
secondary
,
"IDirectSound_CreateSoundBuffer() returned: %08x %p
\n
"
,
rc
,
secondary
);
if
(
secondary
)
...
...
dlls/dsound/tests/dsound8.c
View file @
7f8dfe98
...
...
@@ -723,9 +723,10 @@ static HRESULT test_secondary8(LPGUID lpGuid)
bufdesc
.
lpwfxFormat
=&
wfx
;
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
secondary
,
NULL
);
if
(
wfx
.
wBitsPerSample
!=
8
&&
wfx
.
wBitsPerSample
!=
16
)
ok
(
rc
==
DSERR_CONTROLUNAVAIL
&&
!
secondary
,
"IDirectSound_CreateSoundBuffer() "
"should have returned DSERR_CONTROLUNAVAIL and NULL, returned: %08x %p
\n
"
,
rc
,
secondary
);
ok
((
rc
==
DSERR_CONTROLUNAVAIL
||
rc
==
DSERR_INVALIDCALL
)
&&
!
secondary
,
"IDirectSound_CreateSoundBuffer() "
"should have returned (DSERR_CONTROLUNAVAIL or DSERR_INVALIDCALL) "
"and NULL, returned: %08x %p
\n
"
,
rc
,
secondary
);
else
ok
(
rc
==
DS_OK
&&
secondary
!=
NULL
,
"IDirectSound_CreateSoundBuffer() failed to create a secondary "
...
...
@@ -761,7 +762,7 @@ static HRESULT test_secondary8(LPGUID lpGuid)
wfxe
.
Format
.
cbSize
=
sizeof
(
wfxe
)
-
sizeof
(
wfx
);
wfxe
.
SubFormat
=
GUID_NULL
;
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
secondary
,
NULL
);
ok
(
rc
==
DSERR_INVALIDPARAM
&&
!
secondary
,
ok
(
(
rc
==
DSERR_INVALIDPARAM
||
rc
==
DSERR_INVALIDCALL
)
&&
!
secondary
,
"IDirectSound_CreateSoundBuffer() returned: %08x %p
\n
"
,
rc
,
secondary
);
if
(
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