mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Issues where files are only being partially overwritten instead of truncated
This commit is contained in:
@@ -83,15 +83,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
void FileProvider::resizeRaw(u64 newSize) {
|
||||
this->close();
|
||||
|
||||
{
|
||||
wolv::io::File file(m_path, wolv::io::File::Mode::Write);
|
||||
|
||||
file.setSize(newSize);
|
||||
}
|
||||
|
||||
(void)this->open();
|
||||
m_file.setSize(newSize);
|
||||
}
|
||||
|
||||
void FileProvider::insertRaw(u64 offset, u64 size) {
|
||||
|
||||
Reference in New Issue
Block a user