Author: dgorbachev
Date: Thu Mar 1 21:43:23 2012
New Revision: 55956
URL:
http://svn.reactos.org/svn/reactos?rev=55956&view=rev
Log:
[Disk_new]
Silence GCC 4.6 array bounds warning/error.
Modified:
trunk/reactos/drivers/storage/class/disk_new/diskwmi.c
Modified: trunk/reactos/drivers/storage/class/disk_new/diskwmi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/disk…
==============================================================================
--- trunk/reactos/drivers/storage/class/disk_new/diskwmi.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/disk_new/diskwmi.c [iso-8859-1] Thu Mar 1
21:43:23 2012
@@ -1040,8 +1040,8 @@
sizeof(SRB_IO_CONTROL));
DiskSmartStatus->Reason = 0; // Unknown;
- DiskSmartStatus->PredictFailure = ((cmdOutParameters->bBuffer[3] ==
0xf4) &&
- (cmdOutParameters->bBuffer[4] ==
0x2c));
+ DiskSmartStatus->PredictFailure =
((((PUCHAR)cmdOutParameters->bBuffer)[3] == 0xf4) &&
+
(((PUCHAR)cmdOutParameters->bBuffer)[4] == 0x2c));
}
break;
}