Commit 6049ad74 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

user32: Don't crash if passed a non-scrollbar HWND. Fixes Coverity id 265.

parent 18d2653c
......@@ -1256,7 +1256,9 @@ static BOOL SCROLL_GetScrollBarInfo(HWND hwnd, LONG idObject, LPSCROLLBARINFO in
info->xyThumbBottom = info->xyThumbTop + info->dxyLineButton;
infoPtr = SCROLL_GetInternalInfo(hwnd, nBar, TRUE);
if (!infoPtr)
return FALSE;
/* Scroll bar state */
info->rgstate[0] = 0;
if ((nBar == SB_HORZ && !(style & WS_HSCROLL))
......
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