From: Vibhav Pant <vibhavp@gmail.com> --- dlls/windows.devices.bluetooth/gatt.c | 6 ++++-- dlls/windows.devices.bluetooth/tests/bluetooth.c | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dlls/windows.devices.bluetooth/gatt.c b/dlls/windows.devices.bluetooth/gatt.c index ac541bfc180..84b8ee84d5e 100644 --- a/dlls/windows.devices.bluetooth/gatt.c +++ b/dlls/windows.devices.bluetooth/gatt.c @@ -127,8 +127,10 @@ static HRESULT WINAPI gatt_service_get_Uuid( IGattDeviceService *iface, GUID *va static HRESULT WINAPI gatt_service_get_AttributeHandle( IGattDeviceService *iface, UINT16 *value ) { - FIXME( "(%p, %p): stub!\n", iface, value ); - return E_NOTIMPL; + struct gatt_service *impl = impl_from_IGattDeviceService( iface ); + TRACE( "(%p, %p)\n", iface, value ); + *value = impl->service.AttributeHandle; + return S_OK; } static const IGattDeviceServiceVtbl gatt_service_vtbl = diff --git a/dlls/windows.devices.bluetooth/tests/bluetooth.c b/dlls/windows.devices.bluetooth/tests/bluetooth.c index 66bbbb7e7cc..ca5ced41017 100644 --- a/dlls/windows.devices.bluetooth/tests/bluetooth.c +++ b/dlls/windows.devices.bluetooth/tests/bluetooth.c @@ -548,9 +548,8 @@ static void test_IGattDeviceService( int line, IGattDeviceService *service ) trace( "UUID: %s\n", debugstr_guid( &uuid ) ); hr = IGattDeviceService_get_AttributeHandle( service, &handle ); - todo_wine ok_( __FILE__, line )( hr == S_OK, "got hr %#lx.\n", hr ); - if (hr == S_OK) - trace( "Attribute handle: %#x\n", handle ); + ok_( __FILE__, line )( hr == S_OK, "got hr %#lx.\n", hr ); + trace( "Attribute handle: %#x\n", handle ); } static void test_IBluetoothLEDevice( int line, IBluetoothLEDevice *device, UINT64 addr ) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10865