Index: wine/dlls/ddraw/dsurface/dib.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/dsurface/dib.c,v
retrieving revision 1.30
diff -u -r1.30 dib.c
--- wine/dlls/ddraw/dsurface/dib.c	8 Jul 2003 21:10:01 -0000	1.30
+++ wine/dlls/ddraw/dsurface/dib.c	18 Jan 2004 04:00:37 -0000
@@ -849,13 +849,13 @@
     }
 
     h=rsrc->bottom-rsrc->top;
-    if (h>ddesc.dwHeight-dsty) h=ddesc.dwHeight-dsty;
-    if (h>sdesc.dwHeight-rsrc->top) h=sdesc.dwHeight-rsrc->top;
+    if (h>(int)ddesc.dwHeight-(int)dsty) h=(int)ddesc.dwHeight-(int)dsty;
+    if (h>(int)sdesc.dwHeight-(int)rsrc->top) h=(int)sdesc.dwHeight-(int)rsrc->top;
     if (h<=0) return DDERR_INVALIDRECT;
 
     w=rsrc->right-rsrc->left;
-    if (w>ddesc.dwWidth-dstx) w=ddesc.dwWidth-dstx;
-    if (w>sdesc.dwWidth-rsrc->left) w=sdesc.dwWidth-rsrc->left;
+    if (w>(int)ddesc.dwWidth-(int)dstx) w=(int)ddesc.dwWidth-(int)dstx;
+    if (w>(int)sdesc.dwWidth-(int)rsrc->left) w=(int)sdesc.dwWidth-(int)rsrc->left;
     if (w<=0) return DDERR_INVALIDRECT;
 
     /* Now compute the locking rectangle... */
