mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[Core] Don't pass in old protection pointer if the caller doesn't need it
This commit is contained in:
parent
a47417117e
commit
063db77346
|
|
@ -1054,7 +1054,7 @@ bool BaseHeap::Protect(uint32_t address, uint32_t size, uint32_t protect,
|
||||||
if (!xe::memory::Protect(
|
if (!xe::memory::Protect(
|
||||||
membase_ + heap_base_ + start_page_number * page_size_,
|
membase_ + heap_base_ + start_page_number * page_size_,
|
||||||
page_count * page_size_, ToPageAccess(protect),
|
page_count * page_size_, ToPageAccess(protect),
|
||||||
&old_protect_access)) {
|
old_protect ? &old_protect_access : nullptr)) {
|
||||||
XELOGE("BaseHeap::Protect failed due to host VirtualProtect failure");
|
XELOGE("BaseHeap::Protect failed due to host VirtualProtect failure");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue