Commit f10d5608 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

mmdevapi: Add test showing collection doesn't keep ref on parent.

parent 5e9ec192
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment