mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 17:27:34 +01:00
file_sys/vfs_vector: Fix ignored offset on Write
This commit is contained in:
parent
90c780e6f3
commit
517933adcb
@ -47,7 +47,7 @@ std::size_t VectorVfsFile::Write(const u8* data_, std::size_t length, std::size_
|
|||||||
if (offset + length > data.size())
|
if (offset + length > data.size())
|
||||||
data.resize(offset + length);
|
data.resize(offset + length);
|
||||||
const auto write = std::min(length, data.size() - offset);
|
const auto write = std::min(length, data.size() - offset);
|
||||||
std::memcpy(data.data(), data_, write);
|
std::memcpy(data.data() + offset, data_, write);
|
||||||
return write;
|
return write;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user