From da1fa61cf0a6d6a7406b2ba4c6883e71bbe241d6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 7 Apr 2010 20:18:44 +0000 Subject: [PATCH] [PCI] - Fix a crash that occurs when a device is started which requires no resources svn path=/trunk/; revision=46767 --- reactos/drivers/bus/pci/pdo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/drivers/bus/pci/pdo.c b/reactos/drivers/bus/pci/pdo.c index 6fde92e8311..266b95d6a97 100644 --- a/reactos/drivers/bus/pci/pdo.c +++ b/reactos/drivers/bus/pci/pdo.c @@ -1199,6 +1199,9 @@ PdoStartDevice( PPDO_DEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension; UCHAR Irq; + if (!RawResList) + return STATUS_SUCCESS; + /* TODO: Assign the other resources we get to the card */ for (i = 0; i < RawResList->Count; i++)