PIFile::readAll patch
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user