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
8454cb17
Commit
8454cb17
authored
Nov 08, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Fix test failures on WinXP and 2003.
parent
f00def50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
ds3d.c
dlls/dsound/tests/ds3d.c
+9
-6
No files found.
dlls/dsound/tests/ds3d.c
View file @
8454cb17
...
@@ -349,18 +349,21 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
...
@@ -349,18 +349,21 @@ void test_buffer(LPDIRECTSOUND dso, LPDIRECTSOUNDBUFFER *dsbo,
dsbcaps
.
dwBufferBytes
);
dsbcaps
.
dwBufferBytes
);
}
}
/* Query the format size.
Note that it may not match sizeof(wfx)
*/
/* Query the format size. */
size
=
0
;
size
=
0
;
rc
=
IDirectSoundBuffer_GetFormat
(
*
dsbo
,
NULL
,
0
,
&
size
);
rc
=
IDirectSoundBuffer_GetFormat
(
*
dsbo
,
NULL
,
0
,
&
size
);
ok
(
rc
==
DS_OK
&&
size
!=
0
,
"IDirectSoundBuffer_GetFormat() should have "
ok
(
rc
==
DS_OK
&&
size
!=
0
,
"IDirectSoundBuffer_GetFormat() should have "
"returned the needed size: rc=%s size=%d
\n
"
,
DXGetErrorString8
(
rc
),
size
);
"returned the needed size: rc=%s size=%d
\n
"
,
DXGetErrorString8
(
rc
),
size
);
rc
=
IDirectSoundBuffer_GetFormat
(
*
dsbo
,
&
wfx
,
sizeof
(
wfx
),
NULL
);
ok
(
size
==
sizeof
(
WAVEFORMATEX
)
||
size
==
sizeof
(
WAVEFORMATEXTENSIBLE
),
if
(
wfx
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
"Expected a correct structure size, got %d
\n
"
,
size
);
{
if
(
size
==
sizeof
(
WAVEFORMATEX
))
{
rc
=
IDirectSoundBuffer_GetFormat
(
*
dsbo
,
&
wfx
,
size
,
NULL
);
}
else
if
(
size
==
sizeof
(
WAVEFORMATEXTENSIBLE
))
{
WAVEFORMATEXTENSIBLE
wfxe
;
WAVEFORMATEXTENSIBLE
wfxe
;
ok
(
rc
==
DSERR_INVALIDPARAM
,
"IDirectSoundBuffer_GetFormat returned: %s
\n
"
,
DXGetErrorString8
(
rc
));
rc
=
IDirectSoundBuffer_GetFormat
(
*
dsbo
,(
WAVEFORMATEX
*
)
&
wfxe
,
size
,
NULL
);
rc
=
IDirectSoundBuffer_GetFormat
(
*
dsbo
,(
WAVEFORMATEX
*
)
&
wfxe
,
sizeof
(
wfxe
),
NULL
);
wfx
=
wfxe
.
Format
;
wfx
=
wfxe
.
Format
;
}
}
ok
(
rc
==
DS_OK
,
ok
(
rc
==
DS_OK
,
...
...
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