| Index: device/bluetooth/bluetooth_task_manager_win.cc
|
| diff --git a/device/bluetooth/bluetooth_task_manager_win.cc b/device/bluetooth/bluetooth_task_manager_win.cc
|
| index 0dc0a59ab9a8d841f9d318d29a7acd0945418dbd..3347f0f17534fd3e501a4addf56b0cbfca2453fc 100644
|
| --- a/device/bluetooth/bluetooth_task_manager_win.cc
|
| +++ b/device/bluetooth/bluetooth_task_manager_win.cc
|
| @@ -211,10 +211,12 @@ 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, adapter_handle_.Receive());
|
| + &adapter_param, &temp_adapter_handle);
|
|
|
| if (handle) {
|
| + adapter_handle_.Set(temp_adapter_handle);
|
| GetKnownDevices();
|
| BluetoothFindRadioClose(handle);
|
| }
|
|
|