mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 03:22:58 +00:00
[SETUPAPI] Improve CM_Disable_DevNode_Ex
Replace the call to PNP_DeviceInstanceAction(PNP_DEVINST_DISABLE) by a call to PNP_DisableDevInst() because PNP_DeviceInstanceAction(PNP_DEVINST_DISABLE) is a no-op.
This commit is contained in:
parent
02f68dcb7a
commit
3909ebcf35
1 changed files with 6 additions and 5 deletions
|
@ -1830,11 +1830,12 @@ CM_Disable_DevNode_Ex(
|
||||||
|
|
||||||
RpcTryExcept
|
RpcTryExcept
|
||||||
{
|
{
|
||||||
ret = PNP_DeviceInstanceAction(BindingHandle,
|
ret = PNP_DisableDevInst(BindingHandle,
|
||||||
PNP_DEVINST_DISABLE,
|
|
||||||
ulFlags,
|
|
||||||
lpDevInst,
|
lpDevInst,
|
||||||
NULL);
|
NULL,
|
||||||
|
NULL,
|
||||||
|
0,
|
||||||
|
ulFlags);
|
||||||
}
|
}
|
||||||
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue