- RegQueryValueExW returns ERRROR_SUCCESS
[reactos.git] / reactos / dll / win32 / setupapi / interface.c
index e13fa22..37fa07c 100644 (file)
@@ -266,7 +266,7 @@ SETUP_CreateInterfaceList(
             else
             {
                 dwLength = sizeof(DWORD);
-                if (RegQueryValueExW(hControlKey, Linked, NULL, &dwRegType, (LPBYTE)&LinkedValue, &dwLength)
+                if (RegQueryValueExW(hControlKey, Linked, NULL, &dwRegType, (LPBYTE)&LinkedValue, &dwLength) == ERROR_SUCCESS
                     && dwRegType == REG_DWORD && LinkedValue)
                     interfaceInfo->Flags |= SPINT_ACTIVE;
                 RegCloseKey(hControlKey);