Set right error code, when a problem occurs
Modified: trunk/reactos/lib/setupapi/devinst.c
_____
Modified: trunk/reactos/lib/setupapi/devinst.c
--- trunk/reactos/lib/setupapi/devinst.c 2005-12-08 23:44:31 UTC
(rev 19984)
+++ trunk/reactos/lib/setupapi/devinst.c 2005-12-08 23:45:38 UTC
(rev 19985)
@@ -3757,7 +3757,7 @@
rc = GetFunctionPointer(PropPageProvider, &hModule,
(PVOID*)&pPropPageProvider);
if (rc != ERROR_SUCCESS)
{
- SetLastError(rc);
+ SetLastError(ERROR_INVALID_PROPPAGE_PROVIDER);
goto cleanup;
}