mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix migrating from legacy lang storage.
This commit is contained in:
@@ -504,8 +504,11 @@ void Instance::fillFromSerialized(
|
|||||||
}
|
}
|
||||||
if (!stream.atEnd()) {
|
if (!stream.atEnd()) {
|
||||||
stream >> base;
|
stream >> base;
|
||||||
|
if (base.isEmpty()) {
|
||||||
|
stream.setStatus(QDataStream::ReadCorruptData);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (stream.status() != QDataStream::Ok || base.isEmpty()) {
|
if (stream.status() != QDataStream::Ok) {
|
||||||
LOG(("Lang Error: "
|
LOG(("Lang Error: "
|
||||||
"Could not read data from serialized langpack."));
|
"Could not read data from serialized langpack."));
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user