PIFile::readAll patch

This commit is contained in:
2020-08-06 15:01:31 +03:00
parent 70a7363f76
commit 26742a1fc3

View File

@@ -235,6 +235,7 @@ PIByteArray PIFile::readAll(bool forceRead) {
llong s = size();
if (s < 0) return a;
a.resize(s);
seekToBegin();
fread(a.data(), 1, s, PRIVATE->fd);
seek(cp);
if (s >= 0) a.resize(s);