Merge pull request #10447 from JosJuice/resetcodeptr-on-decrement Common/CodeBlock: Call ResetCodePtr when decreasing region_size