mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Use utils::memory_protect
This commit is contained in:
parent
c72a5a5775
commit
78703cfe47
5 changed files with 26 additions and 41 deletions
|
|
@ -344,7 +344,7 @@ namespace vm
|
|||
|
||||
bool page_protect(u32 addr, u32 size, u8 flags_test, u8 flags_set, u8 flags_clear)
|
||||
{
|
||||
writer_lock lock(0);
|
||||
writer_lock lock;
|
||||
|
||||
if (!size || (size | addr) % 4096)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue