comctl32: fix MSVC build in imagelist.c

Thomas Faber thfabba at gmx.de
Fri Jan 27 16:49:25 CST 2012


This removes the use of a Variable-Length Array in ImageList_CreateImage
and replaces it with HeapAlloc/HeapFree, as it is done in several
other functions in this file.
Alas, FIELD_OFFSET is "not const enough" for ANSI C.
Failure handling is pretty straightforward in this function, so no
extras needed.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-comctl32-fix-MSVC-build-in-imagelist.c.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120127/4ad946c6/attachment.ksh>


More information about the wine-patches mailing list