Commit in reactos/subsys/win32k/eng on MAIN
transblt.c+14-51.21 -> 1.22
BUGFIX: bad params to MouseSafetyOnDrawStart() in IntEngTransparentBlt(), also ASSERT parameter assumptions

reactos/subsys/win32k/eng
transblt.c 1.21 -> 1.22
diff -u -r1.21 -r1.22
--- transblt.c	3 Jul 2004 17:40:25 -0000	1.21
+++ transblt.c	14 Dec 2004 04:40:16 -0000	1.22
@@ -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: transblt.c,v 1.21 2004/07/03 17:40:25 navaraf Exp $
+/* $Id: transblt.c,v 1.22 2004/12/14 04:40:16 royce Exp $
  * 
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -204,9 +204,19 @@
 {
   BOOL Ret;
   RECTL OutputRect, InputClippedRect;
-  SURFOBJ *DestSurf = &DestObj->SurfObj;
-  SURFOBJ *SourceSurf = &SourceObj->SurfObj;
+  SURFOBJ *DestSurf;
+  SURFOBJ *SourceSurf;
   
+  ASSERT(DestObj);
+  ASSERT(SourceObj);
+  ASSERT(DestRect);
+
+  DestSurf = &DestObj->SurfObj;
+  SourceSurf = &SourceObj->SurfObj;
+
+  ASSERT(DestSurf);
+  ASSERT(SourceSurf);
+
   InputClippedRect = *DestRect;
   if(InputClippedRect.right < InputClippedRect.left)
   {
@@ -240,8 +250,7 @@
   if(SourceSurf != DestSurf)
   {
     MouseSafetyOnDrawStart(SourceSurf, SourceRect->left, SourceRect->top, 
-                           (SourceRect->left + abs(SourceRect->right - SourceRect->left)),
-                           (SourceRect->top + abs(SourceRect->bottom - SourceRect->top)));
+                           SourceRect->right, SourceRect->bottom);
   }
   MouseSafetyOnDrawStart(DestSurf, OutputRect.left, OutputRect.top,
                          OutputRect.right, OutputRect.bottom);
CVSspam 0.2.8