mirror of
https://github.com/Vita3K/Vita3K-Android.git
synced 2024-11-27 15:30:43 +00:00
mem: Fix open_access_parent_protect_segment bug
This commit is contained in:
parent
232d462eb3
commit
73fc1be146
@ -395,7 +395,7 @@ void open_access_parent_protect_segment(MemState &state, Address addr) {
|
||||
auto ite = state.protect_tree.lower_bound(addr);
|
||||
|
||||
if (ite != state.protect_tree.end() && addr < ite->first + ite->second.size) {
|
||||
ite->second.ref_count;
|
||||
ite->second.ref_count++;
|
||||
} else {
|
||||
ProtectSegmentInfo protect(0, MemPerm::ReadWrite);
|
||||
protect.ref_count = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user