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
4c64f9bd
Commit
4c64f9bd
authored
Jul 16, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 16, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call IDirectSound::Initialize() as per MSDN before using the
DirectSound object. Fixes a crash on Windows.
parent
acb7207a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
dsound.c
dlls/dsound/tests/dsound.c
+6
-0
No files found.
dlls/dsound/tests/dsound.c
View file @
4c64f9bd
...
...
@@ -69,6 +69,9 @@ static void dsound_dsound_tests()
if
(
rc
==
DS_OK
)
IDirectSound8_Release
(
ds8
);
rc
=
IDirectSound_Initialize
(
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"IDirectSound_Initialize(NULL) failed: %s
\n
"
,
DXGetErrorString9
(
rc
));
/* DSOUND: Error: Invalid caps buffer */
rc
=
IDirectSound_GetCaps
(
dso
,
0
);
ok
(
rc
==
DSERR_INVALIDPARAM
,
"GetCaps should have failed: %s
\n
"
,
DXGetErrorString9
(
rc
));
...
...
@@ -168,6 +171,9 @@ static void dsound_dsound8_tests()
if
(
rc
==
DS_OK
)
IDirectSound8_Release
(
ds8
);
rc
=
IDirectSound8_Initialize
(
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"IDirectSound_Initialize(NULL) failed: %s
\n
"
,
DXGetErrorString9
(
rc
));
/* DSOUND: Error: Invalid caps buffer */
rc
=
IDirectSound8_GetCaps
(
dso
,
0
);
ok
(
rc
==
DSERR_INVALIDPARAM
,
"GetCaps should have failed: %s
\n
"
,
DXGetErrorString9
(
rc
));
...
...
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