Fix Treeview LButtonDown
Maxime Bellengé
maxime.bellenge at laposte.net
Sat Aug 16 12:30:25 CDT 2003
In TREEVIEW_LButtonDown there is a test like :
if ( ht.flags & TVHT_ONITEM) {
...
} else if (ht.flags & TVHT_ONITEMSTATEICON) {
...
}
However TVHT_ONITEM is
TVHT_ONITEMICON|TVHT_ONITEMLABEL|TVHT_ONITEMSTATEICON
so the else condition was unreachable. This patch fixes that ( and fixes
eMule ).
a+
Max
ChangeLog:
* Fix unreachable TVHT_ONITEMSTATEICON in TREEVIEW_LButtonDown
--
Maxime Bellengé <maxime.bellenge at laposte.net>
-------------- next part --------------
--- wine/dlls/comctl32/treeview.c 2003-08-16 19:21:02.000000000 +0200
+++ wine/dlls/comctl32/treeviewmax.c 2003-08-16 19:22:56.000000000 +0200
@@ -3960,7 +3960,7 @@
SetTimer(hwnd, TV_EDIT_TIMER, GetDoubleClickTime(), 0);
infoPtr->Timer |= TV_EDIT_TIMER_SET;
}
- else if (ht.flags & TVHT_ONITEM) /* select the item if the hit was inside of the icon or text */
+ else if (ht.flags & (TVHT_ONITEMICON|TVHT_ONITEMLABEL)) /* select the item if the hit was inside of the icon or text */
{
/*
* if we are TVS_SINGLEEXPAND then we want this single click to
More information about the wine-patches
mailing list