Commit 82c7ff81 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdi32: Initialize the handle table.

Fixes Valgrind warning: 'Conditional jump or move depends on uninitialised value(s)' in metafile test.
parent aceb1226
......@@ -2301,6 +2301,8 @@ BOOL WINAPI EnumEnhMetaFile(
ht = (HANDLETABLE*) &info[1];
ht->objectHandle[0] = hmf;
for(i = 1; i < emh->nHandles; i++)
ht->objectHandle[i] = NULL;
if(hdc)
{
......
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