5 Feb
2026
5 Feb
'26
9:16 p.m.
On Thu Feb 5 21:12:40 2026 +0000, Tim Clem wrote:
Yes, for PNGs we pass the bits back to Unix for processing. Perhaps we do that because we ultimately need a CGImageRef, and we can skip the roundtripping from an HICON (create_cgimage_from_icon) if we know it's a png? But yes, it does look like we could skip that and use CreateIconFromResourceEx universally. But even if we used CreateIconFromResourceEx, we'd still fault, just in PE rather than Unix, unless we correct the size. I don't expect CreateIconFromResourceEx to copy the entire resource, so hopefully it won't fault.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10036#note_128907