mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[UXTHEME] -Set cbSize field of WINDOWINFO before calling GetWindowInfo. CORE-12776
svn path=/trunk/; revision=73838
This commit is contained in:
parent
c7a2132d63
commit
64c9bc0eba
1 changed files with 2 additions and 0 deletions
|
@ -851,6 +851,7 @@ DefWndNCHitTest(HWND hWnd, POINT Point)
|
|||
POINT ClientPoint;
|
||||
WINDOWINFO wi;
|
||||
|
||||
wi.cbSize = sizeof(wi);
|
||||
GetWindowInfo(hWnd, &wi);
|
||||
|
||||
if (!PtInRect(&wi.rcWindow, Point))
|
||||
|
@ -1185,6 +1186,7 @@ HRESULT WINAPI DrawNCPreview(HDC hDC,
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue