gdi32/emf: Zero-initialize handles array (Valgrind).
It's checked in emr_reset(), and reallocation already zero-initializes new slots. Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
de89f77727
commit
8dec8cc96c
1 changed files with 1 additions and 1 deletions
|
@ -2669,7 +2669,7 @@ static struct emf *emf_create( HDC hdc, const RECT *rect, const WCHAR *descripti
|
|||
size = sizeof(ENHMETAHEADER) + aligned_size(length);
|
||||
|
||||
if (!(emf->emh = HeapAlloc( GetProcessHeap(), 0, size )) ||
|
||||
!(emf->handles = HeapAlloc( GetProcessHeap(), 0,
|
||||
!(emf->handles = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
HANDLE_LIST_INC * sizeof(emf->handles[0]) )))
|
||||
{
|
||||
HeapFree( GetProcessHeap(), 0, emf->emh );
|
||||
|
|
Loading…
Add table
Reference in a new issue