dlls/avifil32/avifile.c type fix

Gerald Pfeifer gerald at pfeifer.com
Mon Jul 21 14:05:13 CDT 2008


Shaves off four compiler warnings with GCC 4.4 and more aggressive 
settings.

ChangeLog:
Make size parameter of AVIFILE_ReadBlock DWORD instead of LONG.

Index: dlls/avifil32/avifile.c
===================================================================
RCS file: /home/wine/wine/dlls/avifil32/avifile.c,v
retrieving revision 1.74
diff -u -3 -p -r1.74 avifile.c
--- dlls/avifil32/avifile.c	15 Feb 2008 11:37:28 -0000	1.74
+++ dlls/avifil32/avifile.c	21 Jul 2008 19:03:37 -0000
@@ -217,7 +217,7 @@ static HRESULT AVIFILE_LoadIndex(const I
 static HRESULT AVIFILE_ParseIndex(const IAVIFileImpl *This, AVIINDEXENTRY *lp,
 				  LONG count, DWORD pos, BOOL *bAbsolute);
 static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD start,
-				 LPVOID buffer, LONG size);
+				 LPVOID buffer, DWORD size);
 static void    AVIFILE_SamplesToBlock(const IAVIStreamImpl *This, LPLONG pos,
 				      LPLONG offset);
 static HRESULT AVIFILE_SaveFile(IAVIFileImpl *This);
@@ -2008,7 +2008,7 @@ static HRESULT AVIFILE_ParseIndex(const 
 }
 
 static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD pos,
-				 LPVOID buffer, LONG size)
+				 LPVOID buffer, DWORD size)
 {
   /* pre-conditions */
   assert(This != NULL);



More information about the wine-patches mailing list