Fix 2 setupapi:devclass tests
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 23 May 2009 12:58:12 +0000 (12:58 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sat, 23 May 2009 12:58:12 +0000 (12:58 +0000)
svn path=/trunk/; revision=41072

reactos/dll/win32/setupapi/devinst.c

index a9fd83f..e3272b4 100644 (file)
@@ -3560,7 +3560,7 @@ HKEY WINAPI SetupDiOpenClassRegKeyExW(
     else
     {
         ERR("Invalid Flags parameter!\n");
-        SetLastError(ERROR_INVALID_PARAMETER);
+        SetLastError(ERROR_INVALID_FLAGS);
         if (MachineName != NULL) RegCloseKey(HKLM);
         return INVALID_HANDLE_VALUE;
     }