Set right error code, when a problem occurs

svn path=/trunk/; revision=19985
This commit is contained in:
Hervé Poussineau 2005-12-08 23:45:38 +00:00
parent f2e1575922
commit 72be3bddcd

View file

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