mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
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.
This commit is contained in:
parent
00353712f2
commit
ad53767109
@ -1232,12 +1232,11 @@ static BOOL SCROLL_GetScrollBarInfo(HWND hwnd, LONG idObject, LPSCROLLBARINFO in
|
||||
}
|
||||
|
||||
/* handle invalid data structure */
|
||||
if (!info->cbSize != sizeof(*info))
|
||||
if (info->cbSize != sizeof(*info))
|
||||
return FALSE;
|
||||
|
||||
if (!SCROLL_GetScrollBarRect(hwnd, nBar, &info->rcScrollBar, &nDummy,
|
||||
&info->dxyLineButton, &info->xyThumbTop))
|
||||
return FALSE;
|
||||
SCROLL_GetScrollBarRect(hwnd, nBar, &info->rcScrollBar, &nDummy,
|
||||
&info->dxyLineButton, &info->xyThumbTop);
|
||||
|
||||
info->xyThumbBottom = info->xyThumbTop + info->dxyLineButton;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user