windowscodecs: Fix a copy/paste mistake.

Sebastian Lackner sebastian at fds-team.de
Thu Apr 7 02:00:32 CDT 2016


From: Dmitry Timoshkov <dmitry at baikal.ru>

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
 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;
-- 
2.7.1



More information about the wine-patches mailing list