@@ -2497,8 +2497,8 @@ class LVZipArc : public LVArcContainerBase
24972497 // whether the alternative "truncated" method was used, or is to be used
24982498 bool m_alt_reading_method = false ;
24992499public:
2500- bool usedAltReadingMethod () { return m_alt_reading_method; }
2501- void useAltReadingMethod () { m_alt_reading_method = true ; }
2500+ bool isAltReadingMethod () { return m_alt_reading_method; }
2501+ void setAltReadingMethod () { m_alt_reading_method = true ; }
25022502
25032503 virtual LVStreamRef OpenStream ( const wchar_t * fname, lvopen_mode_t /* mode*/ )
25042504 {
@@ -2773,17 +2773,17 @@ class LVZipArc : public LVArcContainerBase
27732773 return NULL ;
27742774 LVZipArc * arc = new LVZipArc ( stream );
27752775 int itemCount = arc->ReadContents ();
2776- if ( itemCount > 0 && arc->usedAltReadingMethod () ) {
2777- printf ( " CRE WARNING: zip file truncated: going on with possibly partial content.\n " );
2776+ if ( itemCount > 0 && arc->isAltReadingMethod () ) {
2777+ CRLog::warn ( " Zip file truncated: going on with possibly partial content." );
27782778 }
2779- else if ( itemCount <= 0 && !arc->usedAltReadingMethod () ) {
2780- printf ( " CRE WARNING: zip file corrupted or invalid: trying alternative processing...\n " );
2781- arc->useAltReadingMethod ();
2779+ else if ( itemCount <= 0 && !arc->isAltReadingMethod () ) {
2780+ CRLog::warn ( " Zip file corrupted or invalid: trying alternative processing..." );
2781+ arc->setAltReadingMethod ();
27822782 itemCount = arc->ReadContents ();
27832783 }
27842784 if ( itemCount <= 0 )
27852785 {
2786- printf ( " CRE WARNING: zip file corrupted or invalid: processing failure.\n " );
2786+ CRLog::error ( " Zip file corrupted or invalid: processing failure." );
27872787 delete arc;
27882788 return NULL ;
27892789 }
0 commit comments