From 72be3bddcd6428fb82f8c2800ed7adc904ea474b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 8 Dec 2005 23:45:38 +0000 Subject: [PATCH] Set right error code, when a problem occurs svn path=/trunk/; revision=19985 --- reactos/lib/setupapi/devinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/setupapi/devinst.c b/reactos/lib/setupapi/devinst.c index c05b63fc00b..7ce7a69e686 100644 --- a/reactos/lib/setupapi/devinst.c +++ b/reactos/lib/setupapi/devinst.c @@ -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; }