This commit is contained in:
Ivan 2016-05-24 01:59:39 +03:00
parent cdefb969ec
commit edc92843a7
5 changed files with 36 additions and 26 deletions

View file

@ -216,7 +216,7 @@ namespace psf
}
// Skip padding
stream.seek(header.off_data_table);
stream.trunc(stream.seek(header.off_data_table));
// Save data
for (const auto& entry : psf)
@ -241,7 +241,7 @@ namespace psf
}
stream.write(value);
stream.seek(max - size, fs::seek_cur); // Skip up to max_size
stream.trunc(stream.seek(max - size, fs::seek_cur)); // Skip up to max_size
}
else
{