summaryrefslogtreecommitdiffstats
path: root/LICENSE.LGPL3
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2018-01-26 17:34:25 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2018-02-28 09:17:02 +0000
commitbb570997e645413efec1a4426baf997cf36767bd (patch)
treee53e260c0d61a95f31e7d06e930804cc840fcee7 /LICENSE.LGPL3
parente78eb675e89fba8d6a518b7a9f02dd3086f6f52a (diff)
Use WIN32_FROM_HRESULT macro to decode BLE system errors
The GetLastError() function always returns the NO_ERROR code when any of the BluetoothGATTXXX() function fails. The reason is that the BluetoothGATTXXX() function uses the COM API, but the GetLastError() function uses the WIN32 API. We need to convert the HRESULT error code to the WIN32 error code directly, using a macro such as WIN32_FROM_HRESULT. Note: At least, it is reproduced with BluetoothGATTSetCharacteristicValue() function on Windows 10. Change-Id: I548e90bb16647c885b06c32397c277255fd362f4 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'LICENSE.LGPL3')
0 files changed, 0 insertions, 0 deletions