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

This commit is contained in:
Paul Gofman 2022-12-06 09:36:57 -06:00 committed by Alexandre Julliard
parent dabd4ac736
commit c77f60df83

View file

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