From dc3a34f70bcda28effae841f054af16bc7a3b642 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sun, 2 May 2010 19:19:28 +0000 Subject: [PATCH] [SETUPAPI] - Store device settings in the "Device Parameters" key, as the kernel now does it too - Fixes display of AC97 device in audio cpl svn path=/trunk/; revision=47084 --- reactos/dll/win32/setupapi/interface.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/setupapi/interface.c b/reactos/dll/win32/setupapi/interface.c index 1d207097d00..e7556cec75f 100644 --- a/reactos/dll/win32/setupapi/interface.c +++ b/reactos/dll/win32/setupapi/interface.c @@ -399,7 +399,13 @@ InstallOneInterface( HeapFree(GetProcessHeap(), 0, Path); } - return SetupInstallFromInfSectionW(NULL, /* FIXME */ hInf, InterfaceSection, SPINST_REGISTRY, hKey, NULL, 0, NULL, NULL, NULL, NULL); + if (RegCreateKeyExW(hKey, L"Device Parameters", 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hRefKey, NULL) != ERROR_SUCCESS) + { + RegCloseKey(hKey); + return FALSE; + } + + return SetupInstallFromInfSectionW(NULL, /* FIXME */ hInf, InterfaceSection, SPINST_REGISTRY, hRefKey, NULL, 0, NULL, NULL, NULL, NULL); } /***********************************************************************