From 66e1ce79048b5cfae3d572a9762f2718f2e522f9 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 16 Sep 2015 08:53:35 +0000 Subject: [PATCH] [UxTheme] - Fix uninitialized local variable context, MSVC Build. See CORE-9225. svn path=/trunk/; revision=69254 --- reactos/dll/win32/uxtheme/ncscrollbar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/dll/win32/uxtheme/ncscrollbar.c b/reactos/dll/win32/uxtheme/ncscrollbar.c index 9b3527c8daf..d3f3c8ff63b 100644 --- a/reactos/dll/win32/uxtheme/ncscrollbar.c +++ b/reactos/dll/win32/uxtheme/ncscrollbar.c @@ -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; -- 2.17.1