Author: dgorbachev
Date: Sun Jul 26 11:55:46 2009
New Revision: 42229
URL:
http://svn.reactos.org/svn/reactos?rev=42229&view=rev
Log:
Silence a warning.
Modified:
trunk/reactos/drivers/storage/ide/atapi/atapi.c
Modified: trunk/reactos/drivers/storage/ide/atapi/atapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/ide/atapi/…
==============================================================================
--- trunk/reactos/drivers/storage/ide/atapi/atapi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/ide/atapi/atapi.c [iso-8859-1] Sun Jul 26 11:55:46 2009
@@ -5424,11 +5424,18 @@
// Fill in vendor identification fields.
//
- for (i = 0; i < 20; i += 2) {
+ for (i = 0; i < 8; i += 2) {
inquiryData->VendorId[i] =
((PUCHAR)identifyData->ModelNumber)[i + 1];
inquiryData->VendorId[i+1] =
((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];
}
//