Module: wine Branch: master Commit: 602dea1e12c1c89d3fdf0499a079f488fe93cb85 URL: http://source.winehq.org/git/wine.git/?a=commit;h=602dea1e12c1c89d3fdf0499a0...
Author: Daniel Jelinski djelinski1@gmail.com Date: Fri Jul 13 20:11:38 2012 +0200
comctl32/treeview: Fix NM_RCLICK behavior.
---
dlls/comctl32/treeview.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 9e28ee2..e55c941 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -4257,9 +4257,11 @@ TREEVIEW_RButtonDown(TREEVIEW_INFO *infoPtr, LPARAM lParam) } else { - TREEVIEW_RButtonUp(infoPtr, &ht.pt); SetFocus(infoPtr->hwnd); - TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK); + if(!TREEVIEW_SendSimpleNotify(infoPtr, NM_RCLICK)) + { + TREEVIEW_RButtonUp(infoPtr, &ht.pt); + } }
return 0;