mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[UXTHEME] -Set cbSize field of WINDOWINFO before calling GetWindowInfo. CORE-12776
svn path=/trunk/; revision=73838
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user