https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ffc99d08e8dfb8ea4464e1...
commit ffc99d08e8dfb8ea4464e1ffbbc1602aaea45259 Author: Serge Gautherie 32623169+SergeGautherie@users.noreply.github.com AuthorDate: Sat Dec 23 21:49:47 2023 +0100 Commit: GitHub noreply@github.com CommitDate: Sat Dec 23 21:49:47 2023 +0100
[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; }