[PATCH 2/4] comctl32/tests: Change toolbar size test data to load dynamically.

Alexandre Julliard julliard at winehq.org
Fri Nov 5 07:35:45 CDT 2010


Austin Lund <austin.lund at gmail.com> writes:

> +static void init_tbsize_results(void) {
> +    tbsize_results = (tbsize_result_t *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, 24*sizeof(tbsize_result_t));
> +    tbsize_results[0] = (tbsize_result_t) { {0, 0, 672, 26}, {100, 22}, 5, {
> +        {  0,   2,  23,  24}, { 23,   2,  46,  24}, { 46,   2,  54,  24},
> +        { 54,   2,  77,  24}, { 77,   2, 100,  24} } };

That syntax is not portable, please avoid it.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list