windowscodecs: Silence a warning due to an API change in libpng 1.5.

Michael Stefaniuc mstefani at redhat.de
Thu Aug 22 07:16:38 CDT 2013


Blame goes to Alexandre for making me think the unthinkable...
---
 dlls/windowscodecs/pngformat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 065b5b8..a93e463 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -877,7 +877,7 @@ static HRESULT WINAPI PngDecoder_Frame_GetColorContexts(IWICBitmapFrameDecode *i
 
     EnterCriticalSection(&This->lock);
 
-    if (ppng_get_iCCP(This->png_ptr, This->info_ptr, &name, &compression_type, &profile, &len))
+    if (ppng_get_iCCP(This->png_ptr, This->info_ptr, &name, &compression_type, (void *)&profile, &len))
     {
         if (cCount && ppIColorContexts)
         {
-- 
1.8.3.1



More information about the wine-patches mailing list