From: Vibhav Pant <vibhavp@gmail.com> --- dlls/windows.devices.bluetooth/bluetoothdevice.c | 5 +++-- dlls/windows.devices.bluetooth/tests/bluetooth.c | 7 +++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/windows.devices.bluetooth/bluetoothdevice.c b/dlls/windows.devices.bluetooth/bluetoothdevice.c index 5cd66fada2d..9806f4c495d 100644 --- a/dlls/windows.devices.bluetooth/bluetoothdevice.c +++ b/dlls/windows.devices.bluetooth/bluetoothdevice.c @@ -236,8 +236,9 @@ static HRESULT WINAPI ble_device_GetTrustLevel( IBluetoothLEDevice *iface, Trust static HRESULT WINAPI ble_device_get_DeviceId( IBluetoothLEDevice *iface, HSTRING *value ) { - FIXME( "(%p, %p): stub!\n", iface, value ); - return E_NOTIMPL; + struct ble_device *impl = impl_from_IBluetoothLEDevice( iface ); + TRACE( "(%p, %p)\n", iface, value ); + return WindowsDuplicateString( impl->id, value ); } static HRESULT WINAPI ble_device_get_Name( IBluetoothLEDevice *iface, HSTRING *value ) diff --git a/dlls/windows.devices.bluetooth/tests/bluetooth.c b/dlls/windows.devices.bluetooth/tests/bluetooth.c index d6e3c090d7f..6e696aea2eb 100644 --- a/dlls/windows.devices.bluetooth/tests/bluetooth.c +++ b/dlls/windows.devices.bluetooth/tests/bluetooth.c @@ -537,10 +537,9 @@ static void test_IBluetoothLEDevice( int line, IBluetoothLEDevice *device, UINT6 HRESULT hr; hr = IBluetoothLEDevice_get_DeviceId( device, &str ); - todo_wine ok_( __FILE__, line )( hr == S_OK, "got hr %#lx.\n", hr ); - todo_wine ok_( __FILE__, line )( !WindowsIsStringEmpty( str ), "got empty DeviceId value.\n" ); - if (hr == S_OK) - trace( "DeviceId: %s\n", debugstr_hstring( str ) ); + ok_( __FILE__, line )( hr == S_OK, "got hr %#lx.\n", hr ); + ok_( __FILE__, line )( !WindowsIsStringEmpty( str ), "got empty DeviceId value.\n" ); + trace( "DeviceId: %s\n", debugstr_hstring( str ) ); WindowsDeleteString( str ); hr = IBluetoothLEDevice_get_BluetoothAddress( device, &addr2 ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10865