Author: hpoussin
Date: Tue Feb 12 14:16:05 2008
New Revision: 32319
URL:
http://svn.reactos.org/svn/reactos?rev=32319&view=rev
Log:
Fix assertion is pci/fdo.c
Modified:
trunk/reactos/drivers/bus/pci/pdo.c
Modified: trunk/reactos/drivers/bus/pci/pdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/pdo.c?rev=…
==============================================================================
--- trunk/reactos/drivers/bus/pci/pdo.c (original)
+++ trunk/reactos/drivers/bus/pci/pdo.c Tue Feb 12 14:16:05 2008
@@ -410,8 +410,8 @@
RtlZeroMemory(ResourceList, ListSize);
ResourceList->ListSize = ListSize;
ResourceList->InterfaceType = PCIBus;
- ResourceList->BusNumber = DeviceExtension->PciDevice->BusNumber;
- ResourceList->SlotNumber = DeviceExtension->PciDevice->SlotNumber.u.AsULONG;
+ ResourceList->BusNumber = 0;
+ ResourceList->SlotNumber = 0;
ResourceList->AlternativeLists = 1;
ResourceList->List[0].Version = 1;
@@ -591,6 +591,7 @@
Descriptor->Type = CmResourceTypeBusNumber;
Descriptor->ShareDisposition = CmResourceShareDeviceExclusive;
+ ResourceList->BusNumber =
Descriptor->u.BusNumber.MinBusNumber =
Descriptor->u.BusNumber.MaxBusNumber =
DeviceExtension->PciDevice->PciConfig.u.type1.SecondaryBus;
Descriptor->u.BusNumber.Length = 1;
@@ -712,7 +713,7 @@
RtlZeroMemory(ResourceList, ListSize);
ResourceList->Count = 1;
ResourceList->List[0].InterfaceType = PCIBus;
- ResourceList->List[0].BusNumber = DeviceExtension->PciDevice->BusNumber;
+ ResourceList->List[0].BusNumber = 0;
PartialList = &ResourceList->List[0].PartialResourceList;
PartialList->Version = 1;
@@ -820,6 +821,7 @@
Descriptor->Type = CmResourceTypeBusNumber;
Descriptor->ShareDisposition = CmResourceShareDeviceExclusive;
+ ResourceList->List[0].BusNumber =
Descriptor->u.BusNumber.Start =
DeviceExtension->PciDevice->PciConfig.u.type1.SecondaryBus;
Descriptor->u.BusNumber.Length = 1;
Descriptor->u.BusNumber.Reserved = 0;