Author: janderwald
Date: Fri Aug 21 16:53:04 2009
New Revision: 42827
URL:
http://svn.reactos.org/svn/reactos?rev=42827&view=rev
Log:
- RegQueryValueExW returns ERRROR_SUCCESS
Modified:
trunk/reactos/dll/win32/setupapi/interface.c
Modified: trunk/reactos/dll/win32/setupapi/interface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/interfa…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/interface.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/interface.c [iso-8859-1] Fri Aug 21 16:53:04 2009
@@ -266,7 +266,7 @@
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);