Savestates: Fix compressed serialization handler deadlock

This commit is contained in:
Elad Ashkenazi 2023-12-05 11:03:12 +02:00
parent 57ee3c6a6d
commit fbeaa1c487

View File

@ -288,7 +288,7 @@ bool compressed_serialization_file_handler::handle_file_op(utils::serial& ar, us
{
v &= ~(1ull << 63);
if (v + ar.data.size() > 0x400'0000)
if (v > 0x400'0000)
{
v |= 1ull << 63;
}