dlls/comctl32/imagelist.c simplification

Gerald Pfeifer gerald at pfeifer.com
Sun Jul 27 15:18:39 CDT 2008


ChangeLog:
Remove unused parameter from _read_bitmap().

Index: dlls/comctl32/imagelist.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/imagelist.c,v
retrieving revision 1.143
diff -u -3 -p -r1.143 imagelist.c
--- dlls/comctl32/imagelist.c	8 Jul 2008 11:12:02 -0000	1.143
+++ dlls/comctl32/imagelist.c	27 Jul 2008 20:18:00 -0000
@@ -1899,7 +1899,7 @@ static int DIB_GetDIBImageBytes( int wid
 
 
 /* helper for ImageList_Read, see comments below */
-static BOOL _read_bitmap(HIMAGELIST himl, HDC hdcIml, LPSTREAM pstm)
+static BOOL _read_bitmap(HDC hdcIml, LPSTREAM pstm)
 {
     BITMAPFILEHEADER	bmfh;
     int bitsperpixel, palspace;
@@ -2006,14 +2006,14 @@ HIMAGELIST WINAPI ImageList_Read (LPSTRE
     if (!himl)
 	return NULL;
 
-    if (!_read_bitmap(himl, himl->hdcImage, pstm))
+    if (!_read_bitmap(himl->hdcImage, pstm))
     {
 	WARN("failed to read bitmap from stream\n");
 	return NULL;
     }
     if (ilHead.flags & ILC_MASK)
     {
-        if (!_read_bitmap(himl, himl->hdcMask, pstm))
+        if (!_read_bitmap(himl->hdcMask, pstm))
         {
             WARN("failed to read mask bitmap from stream\n");
 	    return NULL;



More information about the wine-patches mailing list