1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

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->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 );