https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4f41000714c0c68541a8f…
commit 4f41000714c0c68541a8f3b6510976644d9f702c
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Wed Jun 7 22:47:32 2023 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Wed Jun 14 11:24:47 2023 +0200
[FLOPPY] "zero" parameters in IoQueryDeviceDescription() call are NULL
pointers.
---
drivers/storage/floppy/fdc/fdo.c | 2 --
drivers/storage/floppy/floppy/floppy.c | 9 ++++++++-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/drivers/storage/floppy/fdc/fdo.c b/drivers/storage/floppy/fdc/fdo.c
index f00c58c08d9..a42893dd2c5 100644
--- a/drivers/storage/floppy/fdc/fdo.c
+++ b/drivers/storage/floppy/fdc/fdo.c
@@ -31,8 +31,6 @@ ForwardIrpAndForget(
}
-
-
static
NTSTATUS
FdcFdoStartDevice(
diff --git a/drivers/storage/floppy/floppy/floppy.c
b/drivers/storage/floppy/floppy/floppy.c
index b67c6096872..c1b96046f21 100644
--- a/drivers/storage/floppy/floppy/floppy.c
+++ b/drivers/storage/floppy/floppy/floppy.c
@@ -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