Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1369)

Unified Diff: device/usb/usb_descriptors.cc

Issue 2689323006: Read USB device configurations from index 0. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/usb/usb_descriptors_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_descriptors.cc
diff --git a/device/usb/usb_descriptors.cc b/device/usb/usb_descriptors.cc
index 75326420f4fe67e27133dca3810b9dad1e8325ef..18316c58dbfd7fafa7717df47c5b419973aa9fac 100644
--- a/device/usb/usb_descriptors.cc
+++ b/device/usb/usb_descriptors.cc
@@ -149,7 +149,7 @@ void OnReadDeviceDescriptor(
num_configurations,
base::Bind(OnDoneReadingConfigDescriptors, device_handle,
base::Passed(&desc), callback));
- for (uint8_t i = 1; i <= num_configurations; ++i) {
+ for (uint8_t i = 0; i < num_configurations; ++i) {
scoped_refptr<IOBufferWithSize> header = new IOBufferWithSize(4);
device_handle->ControlTransfer(
USB_DIRECTION_INBOUND, UsbDeviceHandle::STANDARD,
« no previous file with comments | « no previous file | device/usb/usb_descriptors_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698