mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 10:20:03 +00:00
Don't crash if PCI AddDevice is called with a NULL Pdo (happens if pci.sys is considered as a legacy driver)
svn path=/trunk/; revision=24146
This commit is contained in:
parent
30f438bb7b
commit
25e2b01535
|
@ -135,6 +135,8 @@ PciAddDevice(
|
|||
NTSTATUS Status;
|
||||
|
||||
DPRINT("Called\n");
|
||||
if (PhysicalDeviceObject == NULL)
|
||||
return STATUS_SUCCESS;
|
||||
|
||||
Status = IoCreateDevice(DriverObject, sizeof(FDO_DEVICE_EXTENSION),
|
||||
NULL, FILE_DEVICE_BUS_EXTENDER, FILE_DEVICE_SECURE_OPEN, TRUE, &Fdo);
|
||||
|
|
Loading…
Reference in a new issue