[PATCH 6/7] regedit: Use the correct mask flags with LVM_GETNEXTITEM

Hugh McMaster hugh.mcmaster at outlook.com
Fri Jun 16 08:06:50 CDT 2017


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/regedit/framewnd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index 0503dc8..539be96 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -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);
-- 
2.7.4




More information about the wine-patches mailing list