iphlpapi: Fix buffer reallocation in get_pid_map().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49590
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2020-07-22 18:20:33 +03:00 committed by Alexandre Julliard
parent 3d54677586
commit 3feaca7546
1 changed files with 1 additions and 0 deletions

View File

@ -1912,6 +1912,7 @@ static struct pid_map *get_pid_map( unsigned int *num_entries )
HeapFree( GetProcessHeap(), 0, buffer );
return NULL;
}
buffer = new_buffer;
}
if (!(map = HeapAlloc( GetProcessHeap(), 0, map_count * sizeof(*map) )))