[ISAPNP] Fix capabilities for devices

This commit is contained in:
Hervé Poussineau 2020-03-21 14:59:02 +01:00
parent 42724f47f8
commit 1dcc6f8b94

View file

@ -65,13 +65,14 @@ IsaPdoQueryCapabilities(
else else
{ {
DeviceCapabilities->UniqueID = TRUE; DeviceCapabilities->UniqueID = TRUE;
DeviceCapabilities->SilentInstall = TRUE;
DeviceCapabilities->RawDeviceOK = TRUE; DeviceCapabilities->RawDeviceOK = TRUE;
for (i = 0; i < POWER_SYSTEM_MAXIMUM; i++) DeviceCapabilities->SilentInstall = TRUE;
DeviceCapabilities->DeviceState[i] = PowerDeviceD3;
DeviceCapabilities->DeviceState[PowerSystemWorking] = PowerDeviceD0;
} }
for (i = 0; i < POWER_SYSTEM_MAXIMUM; i++)
DeviceCapabilities->DeviceState[i] = PowerDeviceD3;
DeviceCapabilities->DeviceState[PowerSystemWorking] = PowerDeviceD0;
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }