From 04b01df54674c14782d4572635e88ea4a39c54f2 Mon Sep 17 00:00:00 2001 From: ace20022 Date: Wed, 17 Feb 2016 21:05:19 +0100 Subject: [cximage] Stop reading if an error was reported. --- lib/cximage-6.0/CxImage/ximamng.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cximage-6.0/CxImage/ximamng.cpp b/lib/cximage-6.0/CxImage/ximamng.cpp index 865c49003c..9a77abfb07 100644 --- a/lib/cximage-6.0/CxImage/ximamng.cpp +++ b/lib/cximage-6.0/CxImage/ximamng.cpp @@ -253,6 +253,8 @@ bool CxImageMNG::Decode(CxFile *hFile) // read all while(pData->bReading){ retval = mng_display_resume(hmng); + if (retval != MNG_NEEDTIMERWAIT) + break; info.nNumFrames++; } -- cgit v1.2.3