Fix Treeview LButtonDown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@laposte.net>
--- 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

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux