Author: jimtabor
Date: Wed Sep 16 08:53:35 2015
New Revision: 69254
URL:
http://svn.reactos.org/svn/reactos?rev=69254&view=rev
Log:
[UxTheme]
- Fix uninitialized local variable context, MSVC Build. See CORE-9225.
Modified:
trunk/reactos/dll/win32/uxtheme/ncscrollbar.c
Modified: trunk/reactos/dll/win32/uxtheme/ncscrollbar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/ncscroll…
==============================================================================
--- trunk/reactos/dll/win32/uxtheme/ncscrollbar.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/uxtheme/ncscrollbar.c [iso-8859-1] Wed Sep 16 08:53:35 2015
@@ -399,13 +399,13 @@
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;