mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
savestate_utils.cpp: Fixup a tiny bug
This commit is contained in:
parent
e48bd29584
commit
093198e3d5
1 changed files with 1 additions and 1 deletions
|
@ -323,8 +323,8 @@ bool boot_last_savestate(bool testing)
|
||||||
bool load_and_check_reserved(utils::serial& ar, usz size)
|
bool load_and_check_reserved(utils::serial& ar, usz size)
|
||||||
{
|
{
|
||||||
u8 bytes[4096];
|
u8 bytes[4096];
|
||||||
|
ensure(size < std::size(bytes));
|
||||||
std::memset(&bytes[size & (0 - sizeof(v128))], 0, sizeof(v128));
|
std::memset(&bytes[size & (0 - sizeof(v128))], 0, sizeof(v128));
|
||||||
ensure(size <= std::size(bytes));
|
|
||||||
|
|
||||||
const usz old_pos = ar.pos;
|
const usz old_pos = ar.pos;
|
||||||
ar(std::span<u8>(bytes, size));
|
ar(std::span<u8>(bytes, size));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue