Rémi Bernon (@rbernon) commented about dlls/windows.devices.bluetooth/bluetoothdevice.c:
+ IAsyncOperation_BluetoothLEDevice **async_op ) { - FIXME( "(%p, %#I64x, %p): stub!\n", iface, addr, async_op ); - return E_NOTIMPL; + static const WCHAR *class_name = RuntimeClass_Windows_Foundation_PropertyValue; + IPropertyValueStatics *statics; + IPropertyValue *addr_val; + HSTRING_HEADER hdr; + HSTRING str; + HRESULT hr; + + TRACE( "(%p, %#I64x, %p)\n", iface, addr, async_op ); + + if (FAILED(hr = WindowsCreateStringReference( class_name, wcslen( class_name ), &hdr, &str ))) return hr; + if (FAILED(hr = RoGetActivationFactory( str, &IID_IPropertyValueStatics, (void **)&statics ))) return hr; + if (FAILED(hr = IPropertyValueStatics_CreateUInt64( statics, addr, (IInspectable **)&addr_val ))) return hr; You're leaking the IPropertyValueStatics reference if IPropertyValueStatics_CreateUInt64 fails. It's static so probably not critical, but still would be nice to fix.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10865#note_140313