Michael Stefaniuc : windowscodecs: Don't cast NULL.

Alexandre Julliard julliard at winehq.org
Mon Dec 21 09:39:50 CST 2009


Module: wine
Branch: master
Commit: ae8c2ec267db3c9b781b7443889ba30387bd587b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ae8c2ec267db3c9b781b7443889ba30387bd587b

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Sun Dec 20 23:33:54 2009 +0100

windowscodecs: Don't cast NULL.

---

 dlls/windowscodecs/pngformat.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 3334d76..f361363 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -235,7 +235,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
     This->info_ptr = ppng_create_info_struct(This->png_ptr);
     if (!This->info_ptr)
     {
-        ppng_destroy_read_struct(&This->png_ptr, (png_infopp)NULL, (png_infopp)NULL);
+        ppng_destroy_read_struct(&This->png_ptr, NULL, NULL);
         This->png_ptr = NULL;
         return E_FAIL;
     }
@@ -243,7 +243,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
     This->end_info = ppng_create_info_struct(This->png_ptr);
     if (!This->info_ptr)
     {
-        ppng_destroy_read_struct(&This->png_ptr, &This->info_ptr, (png_infopp)NULL);
+        ppng_destroy_read_struct(&This->png_ptr, &This->info_ptr, NULL);
         This->png_ptr = NULL;
         return E_FAIL;
     }
@@ -1107,7 +1107,7 @@ static HRESULT WINAPI PngEncoder_Initialize(IWICBitmapEncoder *iface,
     This->info_ptr = ppng_create_info_struct(This->png_ptr);
     if (!This->info_ptr)
     {
-        ppng_destroy_write_struct(&This->png_ptr, (png_infopp)NULL);
+        ppng_destroy_write_struct(&This->png_ptr, NULL);
         This->png_ptr = NULL;
         return E_FAIL;
     }




More information about the wine-cvs mailing list