From b13cfee48668fc290ef15279c52a5ebf3b06d427 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Tue, 23 Sep 2008 18:44:58 +0000 Subject: [PATCH] return correct value in SETUPAPI_GetCurrentHwProfile Fix for Coverity error CID: 782 svn path=/trunk/; revision=36434 --- reactos/dll/win32/setupapi/devinst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/setupapi/devinst.c b/reactos/dll/win32/setupapi/devinst.c index 56f0e2493f4..22177a5f92b 100644 --- a/reactos/dll/win32/setupapi/devinst.c +++ b/reactos/dll/win32/setupapi/devinst.c @@ -4592,7 +4592,7 @@ cleanup: if (hKey != NULL) RegCloseKey(hKey); - return hwProfile; + return ret; } static BOOL