Set right error code, when a problem occurs
authorHervé Poussineau <hpoussin@reactos.org>
Thu, 8 Dec 2005 23:45:38 +0000 (23:45 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Thu, 8 Dec 2005 23:45:38 +0000 (23:45 +0000)
svn path=/trunk/; revision=19985

reactos/lib/setupapi/devinst.c

index c05b63f..7ce7a69 100644 (file)
@@ -3757,7 +3757,7 @@ BOOL WINAPI SetupDiGetClassDevPropertySheetsW(
         rc = GetFunctionPointer(PropPageProvider, &hModule, (PVOID*)&pPropPageProvider);
         if (rc != ERROR_SUCCESS)
         {
         rc = GetFunctionPointer(PropPageProvider, &hModule, (PVOID*)&pPropPageProvider);
         if (rc != ERROR_SUCCESS)
         {
-            SetLastError(rc);
+            SetLastError(ERROR_INVALID_PROPPAGE_PROVIDER);
             goto cleanup;
         }
 
             goto cleanup;
         }