PATCH: msrel32 new compiler

Marcus Meissner marcus at jet.franken.de
Fri Jul 16 07:37:00 CDT 2004


Hi,

Ciao, Marcus

Changelog:
	Fixed lvalue casts for new compiler.

Index: dlls/msrle32/msrle32.c
===================================================================
RCS file: /home/wine/wine/dlls/msrle32/msrle32.c,v
retrieving revision 1.8
diff -u -r1.8 msrle32.c
--- dlls/msrle32/msrle32.c	27 Feb 2004 21:51:13 -0000	1.8
+++ dlls/msrle32/msrle32.c	16 Jul 2004 12:36:10 -0000
@@ -572,7 +572,8 @@
 
       /* add EOL -- end of line */
       lpbiOut->biSizeImage += 2;
-      *((LPWORD)lpOut)++ = 0;
+      *(LPWORD)lpOut = 0;
+      lpOut += sizeof(DWORD);
       assert(lpOut == (lpOutStart + lpbiOut->biSizeImage));
     }
   } else {
@@ -631,7 +632,8 @@
 	    }
 	    /* add EOL -- end of line */
 	    lpbiOut->biSizeImage += 2;
-	    *((LPWORD)lpOut)++ = 0;
+	    *((LPWORD)lpOut) = 0;
+	    lpOut += sizeof(DWORD);
 	  }
 
 	  /* FIXME: if (jumpy == 0 && could encode all) then jump too expensive */
@@ -669,14 +671,16 @@
 
 	/* add EOL -- end of line */
 	lpbiOut->biSizeImage += 2;
-	*((LPWORD)lpOut)++ = 0;
+	*((LPWORD)lpOut) = 0;
+        lpOut += sizeof(DWORD);
 	assert(lpOut == lpOutStart + lpbiOut->biSizeImage);
       }
     }
 
     /* add EOL -- will be changed to EOI */
     lpbiOut->biSizeImage += 2;
-    *((LPWORD)lpOut)++ = 0;
+    *((LPWORD)lpOut) = 0;
+    lpOut += sizeof(DWORD);
   }
 
   /* change EOL to EOI -- end of image */
@@ -720,7 +724,8 @@
 
       /* add EOL -- end of line */
       lpbiOut->biSizeImage += 2;
-      *((LPWORD)lpOut)++ = 0;
+      *((LPWORD)lpOut) = 0;
+      lpOut += sizeof(DWORD);
       assert(lpOut == (lpOutStart + lpbiOut->biSizeImage));
     }
   } else {
@@ -765,7 +770,8 @@
 
 	    /* add EOL -- end of line */
 	    lpbiOut->biSizeImage += 2;
-	    *((LPWORD)lpOut)++ = 0;
+	    *((LPWORD)lpOut) = 0;
+	    lpOut += sizeof(DWORD);
 	    assert(lpOut == (lpOutStart + lpbiOut->biSizeImage));
 	  }
 
@@ -803,14 +809,16 @@
       if (jumpy == 0) {
 	/* add EOL -- end of line */
 	lpbiOut->biSizeImage += 2;
-	*((LPWORD)lpOut)++ = 0;
+	*((LPWORD)lpOut) = 0;
+	lpOut += sizeof(DWORD);
 	assert(lpOut == (lpOutStart + lpbiOut->biSizeImage));
       }
     }
 
     /* add EOL -- will be changed to EOI */
     lpbiOut->biSizeImage += 2;
-    *((LPWORD)lpOut)++ = 0;
+    *((LPWORD)lpOut) = 0;
+    lpOut += sizeof(DWORD);
   }
 
   /* change EOL to EOI -- end of image */
-- 



More information about the wine-patches mailing list