mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 19:43:31 +08:00
[DEVMGR] Display current assigned resources, instead of boot resources
This commit is contained in:
parent
cee171f5d2
commit
500f00de6a
@ -363,7 +363,7 @@ GetResourceList(
|
||||
|
||||
CStringW keyName = L"SYSTEM\\CurrentControlSet\\Enum\\";
|
||||
keyName += pszDeviceID;
|
||||
keyName += L"\\LogConf";
|
||||
keyName += L"\\Control";
|
||||
|
||||
dwError = RegOpenKeyExW(HKEY_LOCAL_MACHINE, keyName, 0, KEY_READ, &hKey);
|
||||
if (dwError != ERROR_SUCCESS)
|
||||
@ -373,7 +373,7 @@ GetResourceList(
|
||||
}
|
||||
|
||||
dwSize = 0;
|
||||
RegQueryValueExW(hKey, L"BootConfig", NULL, NULL, NULL, &dwSize);
|
||||
RegQueryValueExW(hKey, L"AllocConfig", NULL, NULL, NULL, &dwSize);
|
||||
if (dwSize == 0)
|
||||
goto done;
|
||||
|
||||
@ -381,7 +381,7 @@ GetResourceList(
|
||||
if (pResourceList == NULL)
|
||||
goto done;
|
||||
|
||||
dwError = RegQueryValueExW(hKey, L"BootConfig", NULL, NULL, (LPBYTE)pResourceList, &dwSize);
|
||||
dwError = RegQueryValueExW(hKey, L"AllocConfig", NULL, NULL, (LPBYTE)pResourceList, &dwSize);
|
||||
if (dwError != ERROR_SUCCESS)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, pResourceList);
|
||||
|
Loading…
Reference in New Issue
Block a user