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