dbghelp: Read debuggee environment by page.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2023-10-09 09:46:33 +02:00 committed by Alexandre Julliard
parent 733bf91606
commit 152e72c82c

View file

@ -404,7 +404,7 @@ static BOOL check_live_target(struct process* pcs, BOOL wow64, BOOL child_wow64)
do
{
size_t read_size = sysinfo.dwAllocationGranularity - (env & (sysinfo.dwAllocationGranularity - 1));
size_t read_size = sysinfo.dwPageSize - (env & (sysinfo.dwPageSize - 1));
if (!(new_buf = realloc(buf, buf_size + read_size))) break;
buf = new_buf;