From: James Tabor Date: Tue, 23 Feb 2010 03:14:09 +0000 (+0000) Subject: [User32] X-Git-Tag: ReactOS-0.3.11-CLT2010~8^2~94 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=b86b56905fe0856db82a7bf3f6c7dab67ae23528 [User32] - ReactOS uses DCX_KEEPCLIPRGN to prevent the deletion of regions so user support can manage them. Comctl32 depends on this since it does not delete the regions after calling DefWindowProc. svn path=/trunk/; revision=45665 --- diff --git a/reactos/dll/win32/user32/windows/nonclient.c b/reactos/dll/win32/user32/windows/nonclient.c index 5d2b935f58f..5460748d830 100644 --- a/reactos/dll/win32/user32/windows/nonclient.c +++ b/reactos/dll/win32/user32/windows/nonclient.c @@ -489,6 +489,7 @@ DefWndNCPaint(HWND hWnd, HRGN hRgn, BOOL Active) } ReleaseDC(hWnd, hDC); + DeleteObject(hRgn); // We use DCX_KEEPCLIPRGN return 0; }