[SETUPAPI] CMP_RegisterNotification(): Remove useless/broken check (#6210)

Revert new broken check from commit  b0a73746c,
and even remove initial a6eabc004 (r73394) useless check.
This commit is contained in:
Serge Gautherie 2023-12-23 21:49:47 +01:00 committed by GitHub
parent 8943354d17
commit ffc99d08e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -693,7 +693,6 @@ CMP_RegisterNotification(
}
else
{
if (pNotifyData->hNotifyHandle == NULL)
HeapFree(GetProcessHeap(), 0, pNotifyData);
*phDevNotify = (HDEVNOTIFY)NULL;