diff options
author | etienneb@chromium.org <etienneb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 15:49:36 +0000 |
---|---|---|
committer | etienneb@chromium.org <etienneb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-31 15:49:36 +0000 |
commit | 69b6838cc05f9dc9f7027d45b5ec95de3e5ad1a0 (patch) | |
tree | dc3f753f77fe1cbefaea1f724752d1a38c0d41c9 /device/bluetooth/bluetooth_device_win.cc | |
parent | 793f2312bc6ce5c24d9ccd63c08ab85037ccbab5 (diff) | |
download | chromium_src-69b6838cc05f9dc9f7027d45b5ec95de3e5ad1a0.zip chromium_src-69b6838cc05f9dc9f7027d45b5ec95de3e5ad1a0.tar.gz chromium_src-69b6838cc05f9dc9f7027d45b5ec95de3e5ad1a0.tar.bz2 |
There was a missing check to return the right record.
R=erikwright@chromium.org, youngki@chromium.org
BUG=
Review URL: https://chromiumcodereview.appspot.com/21089002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/bluetooth/bluetooth_device_win.cc')
-rw-r--r-- | device/bluetooth/bluetooth_device_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc index 34b7b40..bfd9bc6 100644 --- a/device/bluetooth/bluetooth_device_win.cc +++ b/device/bluetooth/bluetooth_device_win.cc @@ -221,7 +221,8 @@ const BluetoothServiceRecord* BluetoothDeviceWin::GetServiceRecord( for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); iter != service_record_list_.end(); ++iter) { - return *iter; + if ((*iter)->uuid().compare(uuid) == 0) + return *iter; } return NULL; } |