mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-30 06:34:27 +02:00
Fixed qMin
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
3046822272
commit
a7029a9e53
@ -175,7 +175,7 @@ bool Tar::extract(QIODevice* in, QString dst)
|
|||||||
qCritical() << "The expected blocksize was not respected when reading file";
|
qCritical() << "The expected blocksize was not respected when reading file";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
tmp.truncate(qMin(BLOCKSIZE, size));
|
tmp.truncate(qMin(qint64(BLOCKSIZE), size));
|
||||||
out.write(tmp);
|
out.write(tmp);
|
||||||
size -= BLOCKSIZE;
|
size -= BLOCKSIZE;
|
||||||
}
|
}
|
||||||
|
@ -39,8 +39,8 @@
|
|||||||
// both extract functions will extract the first folder inside dest(disregarding the prefix)
|
// both extract functions will extract the first folder inside dest(disregarding the prefix)
|
||||||
namespace Tar {
|
namespace Tar {
|
||||||
bool extract(QIODevice* in, QString dst);
|
bool extract(QIODevice* in, QString dst);
|
||||||
};
|
}
|
||||||
|
|
||||||
namespace GZTar {
|
namespace GZTar {
|
||||||
bool extract(QString src, QString dst);
|
bool extract(QString src, QString dst);
|
||||||
};
|
}
|
Loading…
x
Reference in New Issue
Block a user