https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1dcc6f8b94779c52c4836…
commit 1dcc6f8b94779c52c48363ffc7f33ccb573ea599
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Mar 21 14:59:02 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Sun Mar 22 14:29:38 2020 +0100
[ISAPNP] Fix capabilities for devices
---
drivers/bus/isapnp/pdo.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/bus/isapnp/pdo.c b/drivers/bus/isapnp/pdo.c
index 68e1714cd6f..2add8d4a2b3 100644
--- a/drivers/bus/isapnp/pdo.c
+++ b/drivers/bus/isapnp/pdo.c
@@ -65,13 +65,14 @@ IsaPdoQueryCapabilities(
else
{
DeviceCapabilities->UniqueID = TRUE;
- DeviceCapabilities->SilentInstall = TRUE;
DeviceCapabilities->RawDeviceOK = TRUE;
- for (i = 0; i < POWER_SYSTEM_MAXIMUM; i++)
- DeviceCapabilities->DeviceState[i] = PowerDeviceD3;
- DeviceCapabilities->DeviceState[PowerSystemWorking] = PowerDeviceD0;
+ DeviceCapabilities->SilentInstall = TRUE;
}
+ for (i = 0; i < POWER_SYSTEM_MAXIMUM; i++)
+ DeviceCapabilities->DeviceState[i] = PowerDeviceD3;
+ DeviceCapabilities->DeviceState[PowerSystemWorking] = PowerDeviceD0;
+
return STATUS_SUCCESS;
}