mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 00:33:01 +00:00
Fix lv2_file::op_write regression
This commit is contained in:
parent
ddda09607d
commit
f05a3da964
@ -120,7 +120,7 @@ u64 lv2_file::op_write(vm::cptr<void> buf, u64 size)
|
||||
while (result < size)
|
||||
{
|
||||
const u64 block = std::min<u64>(size - result, sizeof(local_buf));
|
||||
std::memcpy(local_buf, static_cast<const uchar*>(buf.get_ptr()), block);
|
||||
std::memcpy(local_buf, static_cast<const uchar*>(buf.get_ptr()) + result, block);
|
||||
const u64 nwrite = file.write(+local_buf, block);
|
||||
result += nwrite;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user