- Set SurpriseRemovalOK flag when IRP_MN_QUERY_CAPABILITIES was handled successfully

- CORE-6447

svn path=/trunk/; revision=57796
This commit is contained in:
Johannes Anderwald 2012-12-04 05:13:22 +00:00
parent 2b659122ba
commit c2074c11e9

View file

@ -1686,10 +1686,13 @@ HidPnp(
Status = Irp->IoStatus.Status;
}
//
// don't need to safely remove
//
IoStack->Parameters.DeviceCapabilities.Capabilities->SurpriseRemovalOK = TRUE;
if (NT_SUCCESS(Status) && IoStack->Parameters.DeviceCapabilities.Capabilities != NULL)
{
//
// don't need to safely remove
//
IoStack->Parameters.DeviceCapabilities.Capabilities->SurpriseRemovalOK = TRUE;
}
//
// done