Do not directly access the fields of png_struct and png_info. --- a/plugins/mswrite/xp/ie_imp_MSWrite.cpp 2010-05-30 21:20:53.000000000 +0200 +++ b/plugins/mswrite/xp/ie_imp_MSWrite.cpp 2014-09-07 06:58:04.162298089 +0200 @@ -891,7 +891,7 @@ info_ptr = png_create_info_struct (png_ptr); if (!info_ptr) goto err; - if (setjmp (png_ptr->jmpbuf) ) { + if (setjmp (png_jmpbuf(png_ptr)) ) { png_destroy_write_struct (&png_ptr, &info_ptr); goto err; } --- a/src/af/gr/win/gr_Win32Image.cpp 2009-07-08 19:33:53.000000000 +0200 +++ b/src/af/gr/win/gr_Win32Image.cpp 2014-09-07 06:58:04.198298090 +0200 @@ -148,7 +148,7 @@ info_ptr = png_create_info_struct(png_ptr); // libpng will longjmp back to here if a fatal error occurs - if (setjmp(png_ptr->jmpbuf)) + if (setjmp(png_jmpbuf(png_ptr))) { /* If we get here, we had a problem reading the file */ png_destroy_write_struct(&png_ptr, (png_infopp)NULL); @@ -547,7 +547,7 @@ * the normal method of doing things with libpng). REQUIRED unless you * set up your own error handlers in the png_create_read_struct
aboutsummaryrefslogtreecommitdiff |