Author: janderwald Date: Sun May 2 21:19:28 2010 New Revision: 47084
URL: http://svn.reactos.org/svn/reactos?rev=47084&view=rev Log: [SETUPAPI] - Store device settings in the "Device Parameters" key, as the kernel now does it too - Fixes display of AC97 device in audio cpl
Modified: trunk/reactos/dll/win32/setupapi/interface.c
Modified: trunk/reactos/dll/win32/setupapi/interface.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/interfac... ============================================================================== --- trunk/reactos/dll/win32/setupapi/interface.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/interface.c [iso-8859-1] Sun May 2 21:19:28 2010 @@ -399,7 +399,13 @@ 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); }
/***********************************************************************