regedit: Use the correct mask flags with LVM_GETNEXTITEM.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-06-16 13:06:50 +00:00 committed by Alexandre Julliard
parent 1f08ee2453
commit 7f76cf6c26

View file

@ -187,7 +187,7 @@ static void UpdateMenuItems(HMENU hMenu) {
selection = (HTREEITEM)SendMessageW(hwndTV, TVM_GETNEXTITEM, TVGN_CARET, 0);
keyName = GetItemPath(hwndTV, selection, &hRootKey);
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_modify_items(hMenu, index);