mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[ACPI]
- Report the device's lockable status in the device capabilities request - Only report the device as disabled if it is both not enabled and not functional svn path=/trunk/; revision=53899
This commit is contained in:
parent
2fc7134802
commit
f08b1c0500
1 changed files with 2 additions and 1 deletions
|
@ -372,8 +372,9 @@ Bus_PDO_QueryDeviceCaps(
|
|||
|
||||
if (device)
|
||||
{
|
||||
deviceCapabilities->LockSupported = device->flags.lockable;
|
||||
deviceCapabilities->EjectSupported = device->flags.ejectable;
|
||||
deviceCapabilities->HardwareDisabled = !device->status.enabled;
|
||||
deviceCapabilities->HardwareDisabled = !device->status.enabled && !device->status.functional;
|
||||
deviceCapabilities->Removable = device->flags.removable;
|
||||
deviceCapabilities->SurpriseRemovalOK = device->flags.suprise_removal_ok;
|
||||
deviceCapabilities->UniqueID = device->flags.unique_id;
|
||||
|
|
Loading…
Reference in a new issue