Commit in reactos/subsys/win32k/objects on MAIN
cliprgn.c+5-41.39 -> 1.40
dc.c+8-21.135 -> 1.136
+13-6
2 modified files
fixed returning uninitialized variable in NtGdiSelectVisRgn() and NtGdiExtSelectClipRgn()

reactos/subsys/win32k/objects
cliprgn.c 1.39 -> 1.40
diff -u -r1.39 -r1.40
--- cliprgn.c	15 May 2004 20:19:20 -0000	1.39
+++ cliprgn.c	26 May 2004 18:49:06 -0000	1.40
@@ -16,10 +16,10 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: cliprgn.c,v 1.39 2004/05/15 20:19:20 weiden Exp $ */
+/* $Id: cliprgn.c,v 1.40 2004/05/26 18:49:06 weiden Exp $ */
 #include <w32k.h>
 
-VOID FASTCALL
+int FASTCALL
 CLIPPING_UpdateGCRegion(DC* Dc)
 {
    PROSRGNDATA CombinedRegion;
@@ -46,7 +46,7 @@
    ASSERT(Dc->CombinedClip != NULL);
 
    RGNDATA_UnlockRgn(Dc->w.hGCClipRgn);
-   NtGdiOffsetRgn(Dc->w.hGCClipRgn, -Dc->w.DCOrgX, -Dc->w.DCOrgY);
+   return NtGdiOffsetRgn(Dc->w.hGCClipRgn, -Dc->w.DCOrgX, -Dc->w.DCOrgY);
 }
 
 HRGN WINAPI SaveVisRgn(HDC hdc)
@@ -128,6 +128,7 @@
       {
         NtGdiDeleteObject(dc->w.hClipRgn);
         dc->w.hClipRgn = NULL;
+        retval = NULLREGION;
       }
     }
     else
@@ -162,7 +163,7 @@
       NtGdiCombineRgn(dc->w.hClipRgn, dc->w.hClipRgn, hrgn, fnMode);
   }
 
-  CLIPPING_UpdateGCRegion(dc);
+  retval = CLIPPING_UpdateGCRegion(dc);
   DC_UnlockDc( hDC );
 
   return retval;

reactos/subsys/win32k/objects
dc.c 1.135 -> 1.136
diff -u -r1.135 -r1.136
--- dc.c	14 May 2004 16:55:18 -0000	1.135
+++ dc.c	26 May 2004 18:49:06 -0000	1.136
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: dc.c,v 1.135 2004/05/14 16:55:18 navaraf Exp $
+/* $Id: dc.c,v 1.136 2004/05/26 18:49:06 weiden Exp $
  *
  * DC.C - Device context functions
  *
@@ -1756,7 +1756,7 @@
   USHORT Mode;
 
   if(!hDC || !hGDIObj) return NULL;
-
+  
   dc = DC_LockDc(hDC);
   if (NULL == dc)
     {
@@ -1949,6 +1949,12 @@
 
     case GDI_OBJECT_TYPE_REGION:
       DC_UnlockDc (hDC);
+      /*
+       * The return value is one of the following values:
+       *  SIMPLEREGION
+       *  COMPLEXREGION
+       *  NULLREGION
+       */
       return (HGDIOBJ) NtGdiSelectClipRgn(hDC, (HRGN) hGDIObj);
 
     default:
CVSspam 0.2.8