From 1dcc6f8b94779c52c48363ffc7f33ccb573ea599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sat, 21 Mar 2020 14:59:02 +0100 Subject: [PATCH] [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; }