mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
vm: Fix vm::page_protect error checking
This commit is contained in:
parent
57b9acec62
commit
4e139ee080
@ -784,12 +784,9 @@ namespace vm
|
|||||||
flags_set &= ~flags_both;
|
flags_set &= ~flags_both;
|
||||||
flags_clear &= ~flags_both;
|
flags_clear &= ~flags_both;
|
||||||
|
|
||||||
for (u32 i = addr / 4096; i < addr / 4096 + size / 4096; i++)
|
if (!check_addr(addr, flags_test, size))
|
||||||
{
|
{
|
||||||
if ((g_pages[i] & flags_test) != (flags_test | page_allocated))
|
return false;
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!flags_set && !flags_clear)
|
if (!flags_set && !flags_clear)
|
||||||
|
Loading…
Reference in New Issue
Block a user