- RegQueryValueExW returns ERRROR_SUCCESS
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 21 Aug 2009 14:53:04 +0000 (14:53 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 21 Aug 2009 14:53:04 +0000 (14:53 +0000)
svn path=/trunk/; revision=42827

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);