gdi32: Initialize the handle table.
Fixes Valgrind warning: 'Conditional jump or move depends on uninitialised value(s)' in metafile test.
This commit is contained in:
parent
aceb12265f
commit
82c7ff811e
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue