--- a/libmng-2.0.3/libmng_zlib.c 2012-07-30 00:56:34.000000000 +0530 +++ b/libmng-2.0.3/libmng_zlib.c 2015-11-03 12:47:28.588835966 +0530 @@ -370,22 +370,22 @@ #ifdef MNG_INCLUDE_JNG if (pData->bHasJHDR) /* is JNG alpha-channel ? */ { /* just store in object ? */ - if ((!iRslt) && (pData->fStorerow)) + if (pData->fStorerow) iRslt = ((mng_storerow)pData->fStorerow) (pData); } else #endif /* MNG_INCLUDE_JNG */ { /* process this row */ - if ((!iRslt) && (pData->fProcessrow)) + if (pData->fProcessrow) iRslt = ((mng_processrow)pData->fProcessrow) (pData); /* store in object ? */ - if ((!iRslt) && (pData->fStorerow)) + if (pData->fStorerow) iRslt = ((mng_storerow)pData->fStorerow) (pData); /* color correction ? */ - if ((!iRslt) && (pData->fCorrectrow)) + if (pData->fCorrectrow) iRslt = ((mng_correctrow)pData->fCorrectrow) (pData); /* slap onto canvas ? */ - if ((!iRslt) && (pData->fDisplayrow)) + if (pData->fDisplayrow) { iRslt = ((mng_displayrow)pData->fDisplayrow) (pData);