windowscodecs: Adjust a type in PngDecoder_Frame_GetColorContexts.

Gerald Pfeifer gerald at pfeifer.com
Fri Dec 14 17:20:24 CST 2012


Current snapshots of GCC 4.8.0 issue a warning about some of the
new code in windowscodecs/pngformat.c:

  pngformat.c: In function 'PngDecoder_Frame_GetColorContexts':
  pngformat.c:882:5: warning: passing argument 5 of 'ppng_get_iCCP' from
  incompatible pointer type [enabled by default]
     if (ppng_get_iCCP(This->png_ptr, This->info_ptr, &name, &compression_type,&profile, &len))
  pngformat.c:882:5: note: expected 'png_bytepp' but argument is of type 'char **'

The patch below addresses this.

Gerald
---
 dlls/windowscodecs/pngformat.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 4183d8e..2b0a7f7 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -868,7 +868,8 @@ static HRESULT WINAPI PngDecoder_Frame_GetColorContexts(IWICBitmapFrameDecode *i
     UINT cCount, IWICColorContext **ppIColorContexts, UINT *pcActualCount)
 {
     PngDecoder *This = impl_from_IWICBitmapFrameDecode(iface);
-    png_charp name, profile;
+    png_charp name;
+    png_byte *profile;
     png_uint_32 len;
     int compression_type;
     HRESULT hr;
-- 
1.8.0.1



More information about the wine-patches mailing list