mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[REGEDIT] Fix condition of enabling load/unload hive menu item (#6251)
Based on KRosUser's regedit_loadfix.patch. JIRA issue: CORE-19298 Fix the condition of enabling/disabling the "Load Hive" and Unload Hive menu items.
This commit is contained in:
parent
d46d3167a3
commit
1aeac0bf24
1 changed files with 2 additions and 2 deletions
|
@ -272,8 +272,8 @@ UpdateAddress(HTREEITEM hItem, HKEY hRootKey, LPCWSTR pszPath, BOOL bSelectNone)
|
|||
EnableMenuItem(hMenuFrame, ID_REGISTRY_LOADHIVE, MF_BYCOMMAND | MF_GRAYED);
|
||||
EnableMenuItem(hMenuFrame, ID_REGISTRY_UNLOADHIVE, MF_BYCOMMAND | MF_GRAYED);
|
||||
/* compare the strings to see if we should enable/disable the "Load Hive" menus accordingly */
|
||||
if (_wcsicmp(rootName, L"HKEY_LOCAL_MACHINE") != 0 ||
|
||||
_wcsicmp(rootName, L"HKEY_USERS") != 0)
|
||||
if (_wcsicmp(rootName, L"HKEY_LOCAL_MACHINE") == 0 ||
|
||||
_wcsicmp(rootName, L"HKEY_USERS") == 0)
|
||||
{
|
||||
/*
|
||||
* enable the unload menu item if at the root, otherwise
|
||||
|
|
Loading…
Reference in a new issue