mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-03-01 13:58:06 +00:00
Fix a bug in start address calculation
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@261 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
5da03791a7
commit
9609db8173
|
@ -145,7 +145,7 @@ void* ReadTaskMemory(task_port_t target_task,
|
||||||
|
|
||||||
// use the negative of the page size for the mask to find the page address
|
// use the negative of the page size for the mask to find the page address
|
||||||
mach_vm_address_t page_address =
|
mach_vm_address_t page_address =
|
||||||
reinterpret_cast<mach_vm_address_t>(address) && (-systemPageSize);
|
reinterpret_cast<mach_vm_address_t>(address) & (-systemPageSize);
|
||||||
|
|
||||||
mach_vm_address_t last_page_address =
|
mach_vm_address_t last_page_address =
|
||||||
(reinterpret_cast<mach_vm_address_t>(address) + length +
|
(reinterpret_cast<mach_vm_address_t>(address) + length +
|
||||||
|
|
Loading…
Reference in a new issue