Commit 8dec8cc9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

gdi32/emf: Zero-initialize handles array (Valgrind).

It's checked in emr_reset(), and reallocation already zero-initializes new slots. Signed-off-by: 's avatarNikolay Sivov <nsivov@codeweavers.com>
parent de89f777
......@@ -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 );
......
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