Commit in reactos/subsys/win32k/objects on MAIN
dc.c+4-61.126 -> 1.127
Handle regions in SelectObject()

reactos/subsys/win32k/objects
dc.c 1.126 -> 1.127
diff -u -r1.126 -r1.127
--- dc.c	5 Apr 2004 21:26:25 -0000	1.126
+++ dc.c	6 Apr 2004 07:43:33 -0000	1.127
@@ -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.126 2004/04/05 21:26:25 navaraf Exp $
+/* $Id: dc.c,v 1.127 2004/04/06 07:43:33 gvg Exp $
  *
  * DC.C - Device context functions
  *
@@ -1902,12 +1902,10 @@
 
       return objOrg;
 
-#if UPDATEREGIONS
     case GDI_OBJECT_TYPE_REGION:
-      DC_UnlockDc ( hDC );
-      SelectClipRgn(hDC, (HRGN)hGDIObj);
-      return NULL;
-#endif
+      DC_UnlockDc (hDC);
+      return (HGDIOBJ) NtGdiSelectClipRgn(hDC, (HRGN) hGDIObj);
+
     default:
       break;
   }
CVSspam 0.2.8