Author: jimtabor
Date: Sun Sep  4 21:54:57 2011
New Revision: 53595

URL: http://svn.reactos.org/svn/reactos?rev=53595&view=rev
Log:
[User32]
- Fixed over check conditions for deleting regions in set window region.
- Disabled offsets with window region. Fixes wine tests..

Modified:
    trunk/reactos/dll/win32/user32/windows/paint.c

Modified: trunk/reactos/dll/win32/user32/windows/paint.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/paint.c?rev=53595&r1=53594&r2=53595&view=diff
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/paint.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/paint.c [iso-8859-1] Sun Sep  4 
21:54:57 2011
@@ -208,7 +208,7 @@
    if (!Hook)
    {
       Ret = NtUserSetWindowRgn(hWnd, hRgn, bRedraw);
-      if (hRgn && Ret)
+      if (Ret)
           DeleteObject(hRgn);
       return Ret;
    }
@@ -285,10 +285,10 @@
 
   if (!Ret)
      return ERROR;
-
+/*
   if (hWnd != GetDesktopWindow()) // pWnd->fnid != FNID_DESKTOP)
      Ret = OffsetRgn(hRgn, -pWnd->rcWindow.left, -pWnd->rcWindow.top);
-
+*/
   if (pWnd->ExStyle & WS_EX_LAYOUTRTL)
      MirrorRgn(hWnd, hRgn);
 
@@ -319,10 +319,10 @@
 
   if (!Ret)
      return ERROR;
-
+/*
   if (hWnd != GetDesktopWindow()) // pWnd->fnid != FNID_DESKTOP)
      OffsetRect(lprc, -pWnd->rcWindow.left, -pWnd->rcWindow.top);
-
+*/
   if (pWnd->ExStyle & WS_EX_LAYOUTRTL)
      MirrorWindowRect(pWnd, lprc);
 


Reply via email to