SymmetricCipherStream: Fix error string when detecting an error while writing.

This commit is contained in:
Felix Geyer 2015-07-20 19:53:17 +02:00
parent fdec16c3a0
commit fcb5deff0a

View File

@ -219,7 +219,7 @@ bool SymmetricCipherStream::writeBlock(bool lastBlock)
if (m_baseDevice->write(m_buffer) != m_buffer.size()) {
m_error = true;
setErrorString(m_cipher->errorString());
setErrorString(m_baseDevice->errorString());
return false;
}
else {