Author: jgardou
Date: Wed Sep 17 15:08:23 2014
New Revision: 64182
URL:
http://svn.reactos.org/svn/reactos?rev=64182&view=rev
Log:
[USER32]
- Delete region on error path.
[WIN32SS]
- Improve/add a few debug prints.
Modified:
trunk/reactos/win32ss/user/ntuser/windc.c
trunk/reactos/win32ss/user/user32/windows/message.c
trunk/reactos/win32ss/user/user32/windows/nonclient.c
Modified: trunk/reactos/win32ss/user/ntuser/windc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/windc.…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/windc.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/windc.c [iso-8859-1] Wed Sep 17 15:08:23 2014
@@ -1037,7 +1037,8 @@
PWND Wnd=NULL;
DECLARE_RETURN(HDC);
- TRACE("Enter NtUserGetDCEx\n");
+ TRACE("Enter NtUserGetDCEx: hWnd %p, ClipRegion %p, Flags %x.\n",
+ hWnd, ClipRegion, Flags);
UserEnterExclusive();
if (hWnd && !(Wnd = UserGetWindowObject(hWnd)))
Modified: trunk/reactos/win32ss/user/user32/windows/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/message.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/message.c [iso-8859-1] Wed Sep 17 15:08:23
2014
@@ -1619,6 +1619,9 @@
LRESULT Result = 0, PreResult = 0;
DWORD Data = 0;
+ TRACE("IntCallWindowProcA: IsAnsiProc : %s, WndProc %p, pWnd %p, hWnd %p, Msg %u,
wParam %Iu, lParam %Iu.\n",
+ IsAnsiProc ? "TRUE" : "FALSE", WndProc, pWnd, hWnd, Msg,
wParam, lParam);
+
if (WndProc == NULL)
{
WARN("IntCallWindowsProcA() called with WndProc = NULL!\n");
Modified: trunk/reactos/win32ss/user/user32/windows/nonclient.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/window…
==============================================================================
--- trunk/reactos/win32ss/user/user32/windows/nonclient.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/windows/nonclient.c [iso-8859-1] Wed Sep 17 15:08:23
2014
@@ -281,9 +281,15 @@
Style = GetWindowLongPtrW(hWnd, GWL_STYLE);
+ TRACE("DefWndNCPaint: hWnd %p, hRgn %p, Active %s.\n",
+ hWnd, hRgn, Active ? "TRUE" : "FALSE");
+
hDC = GetDCEx(hWnd, hRgn, DCX_WINDOW | DCX_INTERSECTRGN | DCX_USESTYLE |
DCX_KEEPCLIPRGN);
if (hDC == 0)
{
+ ERR("hDC is NULL!\n");
+ if (hRgn != HRGN_WINDOW)
+ DeleteObject(hRgn);
return 0;
}