Commit ad537671 authored by Frank Richter's avatar Frank Richter Committed by Alexandre Julliard

Fix wrong structure size check in GetScrollBarInfo().

GetScrollBarInfo() failed when SCROLL_GetScrollBarRect() returned FALSE - however, this is the case if the scrollbar is horizontal, and not an error indicator.
parent 00353712
...@@ -1232,12 +1232,11 @@ static BOOL SCROLL_GetScrollBarInfo(HWND hwnd, LONG idObject, LPSCROLLBARINFO in ...@@ -1232,12 +1232,11 @@ static BOOL SCROLL_GetScrollBarInfo(HWND hwnd, LONG idObject, LPSCROLLBARINFO in
} }
/* handle invalid data structure */ /* handle invalid data structure */
if (!info->cbSize != sizeof(*info)) if (info->cbSize != sizeof(*info))
return FALSE; return FALSE;
if (!SCROLL_GetScrollBarRect(hwnd, nBar, &info->rcScrollBar, &nDummy, SCROLL_GetScrollBarRect(hwnd, nBar, &info->rcScrollBar, &nDummy,
&info->dxyLineButton, &info->xyThumbTop)) &info->dxyLineButton, &info->xyThumbTop);
return FALSE;
info->xyThumbBottom = info->xyThumbTop + info->dxyLineButton; info->xyThumbBottom = info->xyThumbTop + info->dxyLineButton;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment