How to reproduce
- Remove Bluetooth capabilities from manifest
- Start a device discovery
What is expected
Error report that access is denied
What is get
No error reported at the Bluetooth level.
BluetoothDeviceDiscoveryAgent_winrt.cpp:75 QWinRTFunctions::await(deviceFromIdOperation, device.GetAddressOf()); returns 0 (S_OK)
Warning : i talk about the method effective response, not the fact that the response is not checked (https://bugreports.qt.io/browse/QTBUG-56191).
An exception is logged :
Exception at 0x745096c2, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in Windows_Devices_Bluetooth
onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothdevice.cpp(1489)\Windows.Devices.Bluetooth.dll!11A44321: (caller: 11A4760A) Exception(2) tid(347c) 80070005 Access is denied.