diff options
Diffstat (limited to 'device/bluetooth/bluetooth_task_manager_win.cc')
-rw-r--r-- | device/bluetooth/bluetooth_task_manager_win.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/device/bluetooth/bluetooth_task_manager_win.cc b/device/bluetooth/bluetooth_task_manager_win.cc index 3347f0f..0dc0a59 100644 --- a/device/bluetooth/bluetooth_task_manager_win.cc +++ b/device/bluetooth/bluetooth_task_manager_win.cc @@ -211,12 +211,10 @@ void BluetoothTaskManagerWin::PollAdapter() { { sizeof(BLUETOOTH_FIND_RADIO_PARAMS) }; if (adapter_handle_) adapter_handle_.Close(); - HANDLE temp_adapter_handle; HBLUETOOTH_RADIO_FIND handle = BluetoothFindFirstRadio( - &adapter_param, &temp_adapter_handle); + &adapter_param, adapter_handle_.Receive()); if (handle) { - adapter_handle_.Set(temp_adapter_handle); GetKnownDevices(); BluetoothFindRadioClose(handle); } |