From 28e275a8b7091c2da662790eedf8d9585fca6fe2 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 26 Feb 2004 09:38:56 +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 16d36b0ac9..8f47e8e2de 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( iUsbStorageIndex = 0; true; iUsbStorageIndex++; ) + for( int iUsbStorageIndex = 0; true; iUsbStorageIndex++; ) { UsbStorageDevice& usbd = vDevicesOut[iConnectedDeviceIndex]; // Output looks like: