mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:03:00 +00:00
[SETUPAPI] Do not use SetupDiOpenDevRegKey in other SetupDi functions. Use SETUPDI_OpenDevKey or SETUPDI_OpenDrvKey instead.
Note: The remaining calls to SetupDiOpenDevRegKey and SetupDiCreateDevRegKey will be fixed in another patch. Fixes CORE-15091
This commit is contained in:
parent
2a80ae2bb6
commit
60e166535a
4 changed files with 24 additions and 20 deletions
|
@ -1279,7 +1279,7 @@ SetupDiGetClassDevPropertySheetsW(
|
|||
DWORD rc;
|
||||
|
||||
if (DeviceInfoData)
|
||||
hKey = SetupDiOpenDevRegKey(DeviceInfoSet, DeviceInfoData, DICS_FLAG_GLOBAL, 0, DIREG_DRV, KEY_QUERY_VALUE);
|
||||
hKey = SETUPDI_OpenDrvKey(list->HKLM, (struct DeviceInfo *)DeviceInfoData->Reserved, KEY_QUERY_VALUE);
|
||||
else
|
||||
{
|
||||
hKey = SetupDiOpenClassRegKeyExW(&list->ClassGuid, KEY_QUERY_VALUE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue