mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
parent
23147330dd
commit
2af9e7dfac
1 changed files with 9 additions and 6 deletions
|
@ -469,17 +469,20 @@ static UINT ICO_ExtractIconExW(
|
||||||
|
|
||||||
icon = CreateIconFromResourceEx(imageData, entry->icHeader.biSizeImage, sig == 1, 0x00030000, cx[index], cy[index], flags);
|
icon = CreateIconFromResourceEx(imageData, entry->icHeader.biSizeImage, sig == 1, 0x00030000, cx[index], cy[index], flags);
|
||||||
|
|
||||||
|
HeapFree(GetProcessHeap(), 0, cursorData);
|
||||||
|
|
||||||
if (icon)
|
if (icon)
|
||||||
{
|
{
|
||||||
|
if (RetPtr)
|
||||||
RetPtr[index] = icon;
|
RetPtr[index] = icon;
|
||||||
|
else
|
||||||
|
DestroyIcon(icon);
|
||||||
|
|
||||||
iconCount = 1;
|
iconCount = 1;
|
||||||
}
|
break;
|
||||||
|
}
|
||||||
if(cursorData != NULL)
|
|
||||||
HeapFree(GetProcessHeap(), 0, cursorData);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
ret = iconCount; /* return number of retrieved icons */
|
ret = iconCount; /* return number of retrieved icons */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue