comctl32: fix MSVC build in imagelist.c

Alexandre Julliard julliard at winehq.org
Mon Jan 30 04:53:27 CST 2012


Thomas Faber <thfabba at gmx.de> writes:

> 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.

Using sizeof instead would be preferable.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list