mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:01:43 +00:00
[DEVMGR] Display current assigned resources, instead of boot resources
This commit is contained in:
parent
cee171f5d2
commit
500f00de6a
1 changed files with 3 additions and 3 deletions
|
@ -363,7 +363,7 @@ GetResourceList(
|
||||||
|
|
||||||
CStringW keyName = L"SYSTEM\\CurrentControlSet\\Enum\\";
|
CStringW keyName = L"SYSTEM\\CurrentControlSet\\Enum\\";
|
||||||
keyName += pszDeviceID;
|
keyName += pszDeviceID;
|
||||||
keyName += L"\\LogConf";
|
keyName += L"\\Control";
|
||||||
|
|
||||||
dwError = RegOpenKeyExW(HKEY_LOCAL_MACHINE, keyName, 0, KEY_READ, &hKey);
|
dwError = RegOpenKeyExW(HKEY_LOCAL_MACHINE, keyName, 0, KEY_READ, &hKey);
|
||||||
if (dwError != ERROR_SUCCESS)
|
if (dwError != ERROR_SUCCESS)
|
||||||
|
@ -373,7 +373,7 @@ GetResourceList(
|
||||||
}
|
}
|
||||||
|
|
||||||
dwSize = 0;
|
dwSize = 0;
|
||||||
RegQueryValueExW(hKey, L"BootConfig", NULL, NULL, NULL, &dwSize);
|
RegQueryValueExW(hKey, L"AllocConfig", NULL, NULL, NULL, &dwSize);
|
||||||
if (dwSize == 0)
|
if (dwSize == 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ GetResourceList(
|
||||||
if (pResourceList == NULL)
|
if (pResourceList == NULL)
|
||||||
goto done;
|
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)
|
if (dwError != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(), 0, pResourceList);
|
HeapFree(GetProcessHeap(), 0, pResourceList);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue