Author: gadamopoulos
Date: Sun Feb 19 11:41:23 2017
New Revision: 73838
URL:
http://svn.reactos.org/svn/reactos?rev=73838&view=rev
Log:
[UXTHEME] -Set cbSize field of WINDOWINFO before calling GetWindowInfo. CORE-12776
Modified:
trunk/reactos/dll/win32/uxtheme/nonclient.c
Modified: trunk/reactos/dll/win32/uxtheme/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/nonclien…
==============================================================================
--- trunk/reactos/dll/win32/uxtheme/nonclient.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/uxtheme/nonclient.c [iso-8859-1] Sun Feb 19 11:41:23 2017
@@ -851,6 +851,7 @@
POINT ClientPoint;
WINDOWINFO wi;
+ wi.cbSize = sizeof(wi);
GetWindowInfo(hWnd, &wi);
if (!PtInRect(&wi.rcWindow, Point))
@@ -1185,6 +1186,7 @@
if (!context.theme)
return E_FAIL;
context.Active = TRUE;
+ context.wi.cbSize = sizeof(context.wi);
if (!GetWindowInfo(hwndDummy, &context.wi))
return E_FAIL;
context.wi.dwStyle |= WS_VISIBLE;