From c7961e4e557aae88b9bf4fe6ce3675cae12bc6a0 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 26 Feb 2004 09:39:43 +0000 Subject: [PATCH] ignore usb-storage descriptors marked "not attached" --- stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp index 8f47e8e2de..1e26fcf63c 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriver_Linux.cpp @@ -135,7 +135,7 @@ void MemoryCardDriver_Linux::GetStorageDevices( vector& vDevic { // Read all usb-storage descriptors and map from our array to usb-storage device index. int iConnectedDeviceIndex = 0; - for( int iUsbStorageIndex = 0; true; iUsbStorageIndex++; ) + for( int iUsbStorageIndex = 0; true; iUsbStorageIndex++ ) { UsbStorageDevice& usbd = vDevicesOut[iConnectedDeviceIndex]; // Output looks like: