https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3909ebcf355d7b473c3339...
commit 3909ebcf355d7b473c333997ea879f98e7461b80 Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sat Mar 7 13:26:53 2020 +0100 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sat Mar 7 13:26:53 2020 +0100
[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. --- dll/win32/setupapi/cfgmgr.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/dll/win32/setupapi/cfgmgr.c b/dll/win32/setupapi/cfgmgr.c index 859b0e45b58..3b341c5c620 100644 --- a/dll/win32/setupapi/cfgmgr.c +++ b/dll/win32/setupapi/cfgmgr.c @@ -1830,11 +1830,12 @@ CM_Disable_DevNode_Ex(
RpcTryExcept { - ret = PNP_DeviceInstanceAction(BindingHandle, - PNP_DEVINST_DISABLE, - ulFlags, - lpDevInst, - NULL); + ret = PNP_DisableDevInst(BindingHandle, + lpDevInst, + NULL, + NULL, + 0, + ulFlags); } RpcExcept(EXCEPTION_EXECUTE_HANDLER) {