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
1f882cd6
Commit
1f882cd6
authored
Apr 08, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Apr 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Fix 2 bugs in ds3d tests.
Fix 2 bugs in the error paths of the ds3d.c test (coverity).
parent
df4b0a83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
11 deletions
+30
-11
ds3d.c
dlls/dsound/tests/ds3d.c
+30
-11
No files found.
dlls/dsound/tests/ds3d.c
View file @
1f882cd6
...
...
@@ -739,9 +739,18 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
&
listener_param
);
ok
(
rc
==
DS_OK
,
"IDirectSound3dListener_GetAllParameters() "
"failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
}
else
{
ok
(
listener
==
NULL
,
"IDirectSoundBuffer_QueryInterface() "
"failed but returned a listener anyway
\n
"
);
ok
(
rc
!=
DS_OK
,
"IDirectSoundBuffer_QueryInterface() succeeded "
"but returned a NULL listener
\n
"
);
if
(
listener
)
{
ref
=
IDirectSound3DListener_Release
(
listener
);
ok
(
ref
==
0
,
"IDirectSound3dListener_Release() listener has "
"%d references, should have 0
\n
"
,
ref
);
}
goto
EXIT2
;
}
else
goto
EXIT
;
}
init_format
(
&
wfx
,
WAVE_FORMAT_PCM
,
22050
,
16
,
2
);
...
...
@@ -887,18 +896,28 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
ref
);
}
}
}
EXIT1:
if
(
has_listener
)
{
ref
=
IDirectSound3DListener_Release
(
listener
);
ok
(
ref
==
0
,
"IDirectSound3dListener_Release() listener has %d "
"references, should have 0
\n
"
,
ref
);
if
(
has_listener
)
{
ref
=
IDirectSound3DListener_Release
(
listener
);
ok
(
ref
==
0
,
"IDirectSound3dListener_Release() listener has %d "
"references, should have 0
\n
"
,
ref
);
}
else
{
ref
=
IDirectSoundBuffer_Release
(
primary
);
ok
(
ref
==
0
,
"IDirectSoundBuffer_Release() primary has %d references, "
"should have 0
\n
"
,
ref
);
}
}
else
{
ref
=
IDirectSoundBuffer_Release
(
primary
);
ok
(
ref
==
0
,
"IDirectSoundBuffer_Release() primary has %d references, "
"should have 0
\n
"
,
ref
);
ok
(
primary
==
NULL
,
"IDirectSound_CreateSoundBuffer(primary) failed "
"but primary created anyway
\n
"
);
ok
(
rc
!=
DS_OK
,
"IDirectSound_CreateSoundBuffer(primary) succeeded "
"but primary not created
\n
"
);
if
(
primary
)
{
ref
=
IDirectSoundBuffer_Release
(
primary
);
ok
(
ref
==
0
,
"IDirectSoundBuffer_Release() primary has %d references, "
"should have 0
\n
"
,
ref
);
}
}
EXIT2:
/* Set the CooperativeLevel back to normal */
/* DSOUND: Setting DirectSound cooperative level to DSSCL_NORMAL */
rc
=
IDirectSound_SetCooperativeLevel
(
dso
,
get_hwnd
(),
DSSCL_NORMAL
);
...
...
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