[FLOPPY] "zero" parameters in IoQueryDeviceDescription() call are NULL pointers.

This commit is contained in:
Hermès Bélusca-Maïto 2023-06-07 22:47:32 +02:00
parent 84b4a80beb
commit 4f41000714
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 8 additions and 3 deletions

View file

@ -31,8 +31,6 @@ ForwardIrpAndForget(
}
static
NTSTATUS
FdcFdoStartDevice(

View file

@ -929,7 +929,14 @@ AddControllers(PDRIVER_OBJECT DriverObject)
PAGED_CODE();
/* Find our controllers on all ISA buses */
IoQueryDeviceDescription(&InterfaceType, 0, &ControllerType, 0, &PeripheralType, 0, ConfigCallback, 0);
IoQueryDeviceDescription(&InterfaceType,
NULL,
&ControllerType,
NULL,
&PeripheralType,
NULL,
ConfigCallback,
NULL);
/*
* w2k breaks the return val from ConfigCallback, so we have to hack around it, rather than just