https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3346301777edabab3f947…
commit 3346301777edabab3f947d8260e5e0ce10b03043
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Sat Dec 14 21:43:56 2024 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Wed Jan 8 23:20:06 2025 +0100
[COMPBATT] Pass NULL for the work item context, not 0
It expects an arbitrary pointer, do the right thing!
---
drivers/bus/acpi/compbatt/comppnp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/acpi/compbatt/comppnp.c b/drivers/bus/acpi/compbatt/comppnp.c
index efc40e9f62e..7e8523537ae 100644
--- a/drivers/bus/acpi/compbatt/comppnp.c
+++ b/drivers/bus/acpi/compbatt/comppnp.c
@@ -183,7 +183,7 @@ CompBattAddNewBattery(
BatteryData);
/* Setup the IRP work entry */
- CompBattMonitorIrpComplete(BatteryData->DeviceObject, Irp, 0);
+ CompBattMonitorIrpComplete(BatteryData->DeviceObject, Irp,
NULL);
Status = STATUS_SUCCESS;
}
else