PATCH: more avifil32 lcast

Marcus Meissner marcus at jet.franken.de
Thu Jul 22 15:31:34 CDT 2004


Hi,

I thought I had those submitted already, but Gerald pointed out otherwise ;)

Ciao, Marcus

Changelog:
	Fixed 2 more casted lvalue issues.

Index: dlls/avifil32/avifile.c
===================================================================
RCS file: /home/wine/wine/dlls/avifil32/avifile.c,v
retrieving revision 1.42
diff -u -r1.42 avifile.c
--- dlls/avifil32/avifile.c	4 Jul 2004 00:11:31 -0000	1.42
+++ dlls/avifil32/avifile.c	22 Jul 2004 20:30:39 -0000
@@ -1115,7 +1115,7 @@
 
       block++;
       offset = 0;
-      ((BYTE*)buffer) += size;
+      buffer = ((LPBYTE)buffer)+size;
       samples    -= size;
       buffersize -= size;
 
Index: dlls/avifil32/editstream.c
===================================================================
RCS file: /home/wine/wine/dlls/avifil32/editstream.c,v
retrieving revision 1.3
diff -u -r1.3 editstream.c
--- dlls/avifil32/editstream.c	27 Jan 2004 00:01:44 -0000	1.3
+++ dlls/avifil32/editstream.c	22 Jul 2004 20:30:39 -0000
@@ -1012,7 +1012,7 @@
       if (bytesread != NULL)
         *bytesread += readBytes;
       if (buffer != NULL) {
-        (LPBYTE)buffer += readBytes;
+        buffer = ((LPBYTE)buffer)+readBytes;
         buffersize     -= readBytes;
       }
       start   += count;
-- 



More information about the wine-patches mailing list