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
195280be
Commit
195280be
authored
May 11, 2017
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime/tests: Add refcount test for generated dmusic/dsound.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
98f77c4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
performance.c
dlls/dmime/tests/performance.c
+12
-0
No files found.
dlls/dmime/tests/performance.c
View file @
195280be
...
...
@@ -122,6 +122,18 @@ static HRESULT test_InitAudio(void)
ok
(
hr
==
S_OK
,
"InitAudio failed: %08x
\n
"
,
hr
);
destroy_performance
(
performance
,
NULL
,
NULL
);
/* Refcounts for auto generated dmusic and dsound */
create_performance
(
&
performance
,
NULL
,
NULL
,
FALSE
);
dmusic
=
NULL
;
dsound
=
NULL
;
hr
=
IDirectMusicPerformance8_InitAudio
(
performance
,
&
dmusic
,
&
dsound
,
NULL
,
0
,
64
,
0
,
NULL
);
ok
(
hr
==
S_OK
,
"InitAudio failed: %08x
\n
"
,
hr
);
ref
=
get_refcount
(
dsound
);
todo_wine
ok
(
ref
==
3
,
"dsound ref count got %d expected 3
\n
"
,
ref
);
ref
=
get_refcount
(
dmusic
);
ok
(
ref
==
2
,
"dmusic ref count got %d expected 2
\n
"
,
ref
);
destroy_performance
(
performance
,
NULL
,
NULL
);
/* dsound without SetCooperativeLevel() */
create_performance
(
&
performance
,
NULL
,
&
dsound
,
FALSE
);
hr
=
IDirectMusicPerformance8_InitAudio
(
performance
,
NULL
,
&
dsound
,
NULL
,
0
,
0
,
0
,
NULL
);
...
...
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