From 1de625af8e8fcf757b48342104e171792251783c Mon Sep 17 00:00:00 2001 From: janderwald Date: Sun, 2 Mar 2025 17:56:33 +0100 Subject: [PATCH] [SETUPAPI] Apply suggestion Co-authored-by: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> --- dll/win32/setupapi/interface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dll/win32/setupapi/interface.c b/dll/win32/setupapi/interface.c index 26fa49792cb..6a627d1118e 100644 --- a/dll/win32/setupapi/interface.c +++ b/dll/win32/setupapi/interface.c @@ -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; }