Commit c77f60df authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

windows.devices.enumeration/tests: Fix reference count test in device_watcher_handler_Invoke().

parent dabd4ac7
......@@ -110,8 +110,9 @@ static HRESULT WINAPI device_watcher_handler_Invoke( ITypedEventHandler_DeviceWa
impl->invoked = TRUE;
impl->args = args;
IDeviceWatcher_AddRef( sender );
ref = IDeviceWatcher_Release( sender );
ok( ref == 2, "got ref %lu\n", ref );
ok( ref == 3, "got ref %lu\n", ref );
SetEvent( impl->event );
......
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