- 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:
Cameron Gutman 2011-09-30 04:12:31 +00:00
parent 2fc7134802
commit f08b1c0500

View file

@ -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;