mirror of https://github.com/procxx/kepka.git
Beta version 1.9.20: Fix build on GCC.
This commit is contained in:
parent
3a3207f15a
commit
6777b20453
|
@ -3675,9 +3675,7 @@ void _readStickerSets(FileKey &stickersKey, Stickers::Order *outOrder = nullptr,
|
||||||
if (outOrder) {
|
if (outOrder) {
|
||||||
auto outOrderCount = quint32();
|
auto outOrderCount = quint32();
|
||||||
stickers.stream >> outOrderCount;
|
stickers.stream >> outOrderCount;
|
||||||
if (!_checkStreamStatus(stickers.stream)
|
if (!_checkStreamStatus(stickers.stream) || outOrderCount > 1000) {
|
||||||
|| outOrderCount < 0
|
|
||||||
|| outOrderCount > 1000) {
|
|
||||||
return failed();
|
return failed();
|
||||||
}
|
}
|
||||||
outOrder->reserve(outOrderCount);
|
outOrder->reserve(outOrderCount);
|
||||||
|
|
Loading…
Reference in New Issue