mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-29 21:33:13 -08:00
Catch and handle all errors from libgcrypt.
This commit is contained in:
1 parent
a7f4e2d0cd
commit
a762cef0a9
29 files changed
+611
-183
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user