Silence a warning.

svn path=/trunk/; revision=42229
This commit is contained in:
Dmitry Gorbachev 2009-07-26 09:55:46 +00:00
parent 015656ff6d
commit 1632e8b1db

View file

@ -5424,13 +5424,20 @@ Return Value:
// Fill in vendor identification fields. // Fill in vendor identification fields.
// //
for (i = 0; i < 20; i += 2) { for (i = 0; i < 8; i += 2) {
inquiryData->VendorId[i] = inquiryData->VendorId[i] =
((PUCHAR)identifyData->ModelNumber)[i + 1]; ((PUCHAR)identifyData->ModelNumber)[i + 1];
inquiryData->VendorId[i+1] = inquiryData->VendorId[i+1] =
((PUCHAR)identifyData->ModelNumber)[i]; ((PUCHAR)identifyData->ModelNumber)[i];
} }
for (i = 0; i < 12; i += 2) {
inquiryData->ProductId[i] =
((PUCHAR)identifyData->ModelNumber)[i + 8 + 1];
inquiryData->ProductId[i+1] =
((PUCHAR)identifyData->ModelNumber)[i + 8];
}
// //
// Initialize unused portion of product id. // Initialize unused portion of product id.
// //