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
4a4d8cae
Commit
4a4d8cae
authored
Jun 24, 2008
by
Roy Shea
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Added additional tests of IDirectSound_CreateSoundBuffer.
parent
d7768288
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
dsound.c
dlls/dsound/tests/dsound.c
+28
-2
No files found.
dlls/dsound/tests/dsound.c
View file @
4a4d8cae
...
@@ -401,16 +401,42 @@ static HRESULT test_primary(LPGUID lpGuid)
...
@@ -401,16 +401,42 @@ static HRESULT test_primary(LPGUID lpGuid)
"IDirectSound_CreateSoundBuffer() should have failed: %s
\n
"
,
"IDirectSound_CreateSoundBuffer() should have failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
DXGetErrorString8
(
rc
));
/* DSOUND: Error: NULL pointer is invalid */
/* DSOUND: Error: Invalid buffer description pointer */
/* DSOUND: Error: Invalid buffer description pointer */
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
0
,
&
primary
,
NULL
);
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
0
,
&
primary
,
NULL
);
ok
(
rc
==
DSERR_INVALIDPARAM
&&
primary
==
0
,
ok
(
rc
==
DSERR_INVALIDPARAM
&&
primary
==
0
,
"IDirectSound_CreateSoundBuffer() should have failed: rc=%s,"
"IDirectSound_CreateSoundBuffer() should have failed: rc=%s,"
"dsbo=%p
\n
"
,
DXGetErrorString8
(
rc
),
primary
);
"dsbo=%p
\n
"
,
DXGetErrorString8
(
rc
),
primary
);
ZeroMemory
(
&
bufdesc
,
sizeof
(
bufdesc
));
/* DSOUND: Error: Invalid size */
/* DSOUND: Error: Invalid size */
/* DSOUND: Error: Invalid buffer description */
/* DSOUND: Error: Invalid buffer description */
primary
=
NULL
;
ZeroMemory
(
&
bufdesc
,
sizeof
(
bufdesc
));
bufdesc
.
dwSize
=
sizeof
(
bufdesc
)
-
1
;
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DSERR_INVALIDPARAM
&&
primary
==
0
,
"IDirectSound_CreateSoundBuffer() should have failed: rc=%s,"
"primary=%p
\n
"
,
DXGetErrorString8
(
rc
),
primary
);
/* DSOUND: Error: DSBCAPS_PRIMARYBUFFER flag with non-NULL lpwfxFormat */
/* DSOUND: Error: Invalid buffer description pointer */
primary
=
NULL
;
ZeroMemory
(
&
bufdesc
,
sizeof
(
bufdesc
));
bufdesc
.
dwSize
=
sizeof
(
bufdesc
);
bufdesc
.
dwFlags
=
DSBCAPS_PRIMARYBUFFER
;
bufdesc
.
lpwfxFormat
=&
wfx
;
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DSERR_INVALIDPARAM
&&
primary
==
0
,
"IDirectSound_CreateSoundBuffer() should have failed: rc=%s,"
"primary=%p
\n
"
,
DXGetErrorString8
(
rc
),
primary
);
/* DSOUND: Error: No DSBCAPS_PRIMARYBUFFER flag with NULL lpwfxFormat */
/* DSOUND: Error: Invalid buffer description pointer */
primary
=
NULL
;
ZeroMemory
(
&
bufdesc
,
sizeof
(
bufdesc
));
bufdesc
.
dwSize
=
sizeof
(
bufdesc
);
bufdesc
.
dwFlags
=
0
;
bufdesc
.
lpwfxFormat
=
NULL
;
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
rc
=
IDirectSound_CreateSoundBuffer
(
dso
,
&
bufdesc
,
&
primary
,
NULL
);
ok
(
rc
==
DSERR_INVALIDPARAM
&&
primary
==
0
,
ok
(
rc
==
DSERR_INVALIDPARAM
&&
primary
==
0
,
"IDirectSound_CreateSoundBuffer() should have failed: rc=%s,"
"IDirectSound_CreateSoundBuffer() should have failed: rc=%s,"
...
...
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