Catch and handle all errors from libgcrypt.

This commit is contained in:
Felix Geyer committed 2015-05-09 23:21:44 +02:00
1 parent a7f4e2d0cd
commit a762cef0a9
29 files changed
+611 -183

No files matched your search

+4
View File
@@ -41,6 +41,10 @@ QByteArray StoreDataStream::storedData() const
qint64 StoreDataStream::readData(char* data, qint64 maxSize)
{
qint64 bytesRead = LayeredStream::readData(data, maxSize);
if (bytesRead == -1) {
setErrorString(m_baseDevice->errorString());
return -1;
}
m_storedData.append(data, bytesRead);