Need help for kdewin-installer - 7zip support

Igor Mironchick imironchick at gmail.com
Thu Jan 18 08:57:24 CET 2007


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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-windows/attachments/20070118/3920e0ab/attachment.html 


More information about the Kde-windows mailing list