[UxTheme]

- Fix uninitialized local variable context, MSVC Build. See CORE-9225.

svn path=/trunk/; revision=69254
This commit is contained in:
James Tabor 2015-09-16 08:53:35 +00:00
parent a2fc6201e1
commit 66e1ce7904

View file

@ -399,14 +399,14 @@ SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
return;
}
/* The scrollbar rect is in screen coordinates */
OffsetRect(&sbi.rcScrollBar, -context.wi.rcWindow.left, -context.wi.rcWindow.top);
if ((SCROLL_trackHitTest == SCROLL_NOWHERE) && (msg != WM_LBUTTONDOWN))
return;
ThemeInitDrawContext(&context, hwnd, 0);
/* The scrollbar rect is in screen coordinates */
OffsetRect(&sbi.rcScrollBar, -context.wi.rcWindow.left, -context.wi.rcWindow.top);
hwndOwner = (nBar == SB_CTL) ? GetParent(hwnd) : hwnd;
hwndCtl = (nBar == SB_CTL) ? hwnd : 0;