| Commit in reactos/lib/comctl32 on MAIN | |||
| toolbar.c | +2 | 1.12 -> 1.13 | |
Fix TB_GETSTYLE to return the style of the toolbar when wParam is 0. Spotted by Maxime Belleng� <maxime.bellenge@laposte.net>. Fixes bug #290.
diff -u -r1.12 -r1.13 --- toolbar.c 15 Apr 2004 08:29:56 -0000 1.12 +++ toolbar.c 30 Apr 2004 09:55:16 -0000 1.13 @@ -3494,6 +3494,8 @@
     TOOLBAR_INFO *infoPtr = TOOLBAR_GetInfoPtr (hwnd);
     INT nIndex;
 
+ if (wParam == 0) return GetWindowLongW(hwnd, GWL_STYLE); +
     nIndex = TOOLBAR_GetButtonIndex (infoPtr, (INT)wParam, FALSE);
     if (nIndex == -1)
 	return -1;