mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- Set SurpriseRemovalOK flag when IRP_MN_QUERY_CAPABILITIES was handled successfully
- CORE-6447 svn path=/trunk/; revision=57796
This commit is contained in:
parent
2b659122ba
commit
c2074c11e9
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue