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
f10d5608
Commit
f10d5608
authored
Dec 14, 2009
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jan 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi: Add test showing collection doesn't keep ref on parent.
parent
5e9ec192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
mmdevenum.c
dlls/mmdevapi/tests/mmdevenum.c
+5
-0
No files found.
dlls/mmdevapi/tests/mmdevenum.c
View file @
f10d5608
...
...
@@ -41,6 +41,11 @@ static void test_collection(IMMDeviceEnumerator *mme, IMMDeviceCollection *col)
UINT
numdev
;
IMMDevice
*
dev
;
/* collection doesn't keep a ref on parent */
IUnknown_AddRef
(
mme
);
ref
=
IUnknown_Release
(
mme
);
ok
(
ref
==
2
,
"Reference count on parent is %u
\n
"
,
ref
);
ref
=
IUnknown_AddRef
(
col
);
IUnknown_Release
(
col
);
ok
(
ref
==
2
,
"Invalid reference count %u on collection
\n
"
,
ref
);
...
...
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