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