From: Vibhav Pant <vibhavp(a)gmail.com> --- dlls/windows.devices.bluetooth/bluetoothadapter.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dlls/windows.devices.bluetooth/bluetoothadapter.c b/dlls/windows.devices.bluetooth/bluetoothadapter.c index fb5ab0c2435..94d2148f8f5 100644 --- a/dlls/windows.devices.bluetooth/bluetoothadapter.c +++ b/dlls/windows.devices.bluetooth/bluetoothadapter.c @@ -359,8 +359,16 @@ static HRESULT WINAPI bluetoothadapter_get_IsPeripheralRoleSupported( IBluetooth static HRESULT WINAPI bluetoothadapter_get_IsCentralRoleSupported( IBluetoothAdapter *iface, boolean *value ) { - FIXME( "iface %p, value %p stub!\n", iface, value ); - return E_NOTIMPL; + struct winebth_radio_le_info_params info = {0}; + HRESULT hr; + + TRACE( "iface %p, value %p\n", iface, value ); + + *value = FALSE; + if (FAILED((hr = bluetoothadapter_get_le_info( iface, &info )))) + return hr; + *value = !!info.role_central; + return S_OK; } static HRESULT WINAPI bluetoothadapter_get_IsAdvertisementOffloadSupported( IBluetoothAdapter *iface, boolean *value ) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7659