mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 00:03:00 +00:00
Regedit: Fixed a bug whereby a registry path accessed by "Goto" might not get properly selected
svn path=/trunk/; revision=18307
This commit is contained in:
parent
37a51aa3f6
commit
4294896fbd
1 changed files with 6 additions and 3 deletions
|
@ -600,7 +600,7 @@ BOOL SelectNode(HWND hwndTV, LPCTSTR keyPath)
|
||||||
{
|
{
|
||||||
memset(&tvi, 0, sizeof(tvi));
|
memset(&tvi, 0, sizeof(tvi));
|
||||||
tvi.hItem = hChildItem;
|
tvi.hItem = hChildItem;
|
||||||
tvi.mask = TVIF_TEXT;
|
tvi.mask = TVIF_TEXT | TVIF_CHILDREN;
|
||||||
tvi.pszText = szBuffer;
|
tvi.pszText = szBuffer;
|
||||||
tvi.cchTextMax = sizeof(szBuffer) / sizeof(szBuffer[0]);
|
tvi.cchTextMax = sizeof(szBuffer) / sizeof(szBuffer[0]);
|
||||||
|
|
||||||
|
@ -613,8 +613,11 @@ BOOL SelectNode(HWND hwndTV, LPCTSTR keyPath)
|
||||||
if (!hChildItem)
|
if (!hChildItem)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!TreeView_Expand(hwndTV, hChildItem, TVE_EXPAND))
|
if (tvi.cChildren > 0)
|
||||||
return FALSE;
|
{
|
||||||
|
if (!TreeView_Expand(hwndTV, hChildItem, TVE_EXPAND))
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
keyPath = s ? s + 1 : _T("");
|
keyPath = s ? s + 1 : _T("");
|
||||||
hItem = hChildItem;
|
hItem = hChildItem;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue