Index: device/bluetooth/bluetooth_device_win.cc |
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc |
index 34b7b406b62b30d10d4fffea770663d6333b3d29..bfd9bc61297e506d7333881e61d87b98cd77766f 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; |
} |