From ffc99d08e8dfb8ea4464e1ffbbc1602aaea45259 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Sat, 23 Dec 2023 21:49:47 +0100 Subject: [PATCH] [SETUPAPI] CMP_RegisterNotification(): Remove useless/broken check (#6210) Revert new broken check from commit b0a73746c, and even remove initial a6eabc004 (r73394) useless check. --- dll/win32/setupapi/cfgmgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dll/win32/setupapi/cfgmgr.c b/dll/win32/setupapi/cfgmgr.c index 2b2ec4b7067..a3f524714ce 100644 --- a/dll/win32/setupapi/cfgmgr.c +++ b/dll/win32/setupapi/cfgmgr.c @@ -693,8 +693,7 @@ CMP_RegisterNotification( } else { - if (pNotifyData->hNotifyHandle == NULL) - HeapFree(GetProcessHeap(), 0, pNotifyData); + HeapFree(GetProcessHeap(), 0, pNotifyData); *phDevNotify = (HDEVNOTIFY)NULL; }