Merge pull request #10447 from JosJuice/resetcodeptr-on-decrement

Common/CodeBlock: Call ResetCodePtr when decreasing region_size
This commit is contained in:
JMC47 2022-02-13 17:25:11 -05:00 committed by GitHub
commit 86dbf768b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ public:
ASSERT_MSG(DYNA_REC, child_size < GetSpaceLeft(), "Insufficient space for child allocation.");
u8* child_region = region + region_size - child_size;
region_size -= child_size;
ResetCodePtr();
return child_region;
}
void AddChildCodeSpace(CodeBlock* child, size_t child_size)