[SETUPAPI] Apply suggestion

Co-authored-by: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
This commit is contained in:
janderwald 2025-03-02 17:56:33 +01:00 committed by GitHub
parent 938c924016
commit 1de625af8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -214,6 +214,7 @@ SETUP_CreateInterfaceList(
rc = RegQueryValueExW(hReferenceKey, SymbolicLink, NULL, &dwRegType, NULL, &dwLength);
if (rc != ERROR_SUCCESS)
{
/* Skip device interface with invalid reference value (i.e. interface not actually available for this device) */
RegCloseKey(hReferenceKey);
continue;
}