mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Fix TB_GETSTYLE to return the style of the toolbar when wParam is 0.
Spotted by Maxime Belleng� <[email protected]>. Fixes bug #290. svn path=/trunk/; revision=9250
This commit is contained in:
@@ -3494,6 +3494,8 @@ TOOLBAR_GetStyle (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user