And look who made a dumber mistake ;). Thanks WaxDragon

svn path=/trunk/; revision=14858
This commit is contained in:
Alex Ionescu 2005-04-29 02:13:42 +00:00
parent b35cd289ca
commit 19a014905e

View file

@ -2147,8 +2147,6 @@ SpiGetInquiryData(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
((PUCHAR)AdapterBusInfo + sizeof(SCSI_ADAPTER_BUS_INFO) + ((PUCHAR)AdapterBusInfo + sizeof(SCSI_ADAPTER_BUS_INFO) +
(sizeof(SCSI_BUS_DATA) * (AdapterBusInfo->NumberOfBuses - 1))); (sizeof(SCSI_BUS_DATA) * (AdapterBusInfo->NumberOfBuses - 1)));
RtlZeroMemory(UnitInfo, sizeof(*UnitInfo));
for (Bus = 0; Bus < AdapterBusInfo->NumberOfBuses; Bus++) for (Bus = 0; Bus < AdapterBusInfo->NumberOfBuses; Bus++)
{ {
AdapterBusInfo->BusData[Bus].InitiatorBusId = AdapterBusInfo->BusData[Bus].InitiatorBusId =
@ -2171,7 +2169,7 @@ SpiGetInquiryData(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
{ {
DPRINT("(Bus %lu Target %lu Lun %lu)\n", DPRINT("(Bus %lu Target %lu Lun %lu)\n",
Bus, Target, Lun); Bus, Target, Lun);
RtlZeroMemory(UnitInfo, sizeof(*UnitInfo));
UnitInfo->PathId = Bus; UnitInfo->PathId = Bus;
UnitInfo->TargetId = Target; UnitInfo->TargetId = Target;
UnitInfo->Lun = Lun; UnitInfo->Lun = Lun;