Commit 7f76cf6c authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

regedit: Use the correct mask flags with LVM_GETNEXTITEM.

parent 1f08ee24
...@@ -187,7 +187,7 @@ static void UpdateMenuItems(HMENU hMenu) { ...@@ -187,7 +187,7 @@ static void UpdateMenuItems(HMENU hMenu) {
selection = (HTREEITEM)SendMessageW(hwndTV, TVM_GETNEXTITEM, TVGN_CARET, 0); selection = (HTREEITEM)SendMessageW(hwndTV, TVM_GETNEXTITEM, TVGN_CARET, 0);
keyName = GetItemPath(hwndTV, selection, &hRootKey); keyName = GetItemPath(hwndTV, selection, &hRootKey);
index = SendMessageW(g_pChildWnd->hListWnd, LVM_GETNEXTITEM, -1, index = SendMessageW(g_pChildWnd->hListWnd, LVM_GETNEXTITEM, -1,
MAKELPARAM(LVIS_FOCUSED | LVIS_SELECTED, 0)); MAKELPARAM(LVNI_FOCUSED | LVNI_SELECTED, 0));
update_expand_or_collapse_item(hwndTV, selection, hMenu); update_expand_or_collapse_item(hwndTV, selection, hMenu);
update_modify_items(hMenu, index); update_modify_items(hMenu, index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment