Dmitry Timoshkov : windowscodecs: Fix a copy/paste mistake.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Apr 7 11:42:52 CDT 2016


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Apr  7 09:00:32 2016 +0200

windowscodecs: Fix a copy/paste mistake.

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 4f5cb94..cd9165b 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -532,7 +532,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
     }
 
     This->end_info = ppng_create_info_struct(This->png_ptr);
-    if (!This->info_ptr)
+    if (!This->end_info)
     {
         ppng_destroy_read_struct(&This->png_ptr, &This->info_ptr, NULL);
         This->png_ptr = NULL;




More information about the wine-cvs mailing list