[UXTHEME} -Fix usage of uninitialized variable. CORE-11204
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Wed, 29 Mar 2017 20:50:56 +0000 (20:50 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Wed, 29 Mar 2017 20:50:56 +0000 (20:50 +0000)
svn path=/trunk/; revision=74244

reactos/dll/win32/uxtheme/nonclient.c

index aa37903..71476f7 100644 (file)
@@ -814,6 +814,8 @@ ThemeHandleButton(HWND hWnd, WPARAM wParam)
 
     SetCapture(hWnd);
 
+    ht = wParam;
+
     for (;;)
     {
         if (GetMessageW(&Msg, 0, WM_MOUSEFIRST, WM_MOUSELAST) <= 0)