[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-windows
Subject:    Re: Need help for kdewin-installer - 7zip support
From:       "Christian Ehrlicher" <Ch.Ehrlicher () gmx ! de>
Date:       2007-01-18 8:27:38
Message-ID: 20070118082738.20050 () gmx ! net
[Download RAW message or body]

Von: "Igor Mironchick" <imironchick@gmail.com>
> Hi, i forgot to do something...
> 
> In SzManager::saveCurrentFile( QIODevice * file )
> it is neccessary to do this changes:
> 
> bool
> SzManager::saveCurrentFile( QIODevice * file )
> {
> if( file->isWritable() )
> {
> UInt32 processedSize;
> size_t offset;
> size_t outSizeProcessed;
> 
> res = SzReadFile( &archiveStream.InStream, &db, currentFileIndex,
> &blockIndex, &outBuffer, &outBufferSize,
> &offset, &outSizeProcessed,
> &allocImp, &allocTempImp );
> if (res != SZ_OK)
> return false;
> 
> processedSize = file->writeBlock( (char*)(outBuffer + offset),
> outSizeProcessed );
> if (processedSize != outSizeProcessed)
> {
> res = SZE_FAIL;
> return false;
> }
> 
> return true;
> }
> 
> return false;
> }
> 
> It is better :)

Thx for your help, it could be easily ported to qt4 and I've changed it to use \
QIODevice the way like quazip does. Seems to work fine although I'm having some \
troubles with SzClean()...

Christian
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic