Commit 152e72c8 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Read debuggee environment by page.

parent 733bf916
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment