From c77f60df83254c902367f25d719d0b66d493cf2d Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Tue, 6 Dec 2022 09:36:57 -0600 Subject: [PATCH] windows.devices.enumeration/tests: Fix reference count test in device_watcher_handler_Invoke(). --- dlls/windows.devices.enumeration/tests/devices.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/windows.devices.enumeration/tests/devices.c b/dlls/windows.devices.enumeration/tests/devices.c index b146f4b0698..72bce374410 100644 --- a/dlls/windows.devices.enumeration/tests/devices.c +++ b/dlls/windows.devices.enumeration/tests/devices.c @@ -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 );