dlls/kernel32/task.c -- minor improvement
Robert Shearman
rob at codeweavers.com
Mon Jan 7 11:38:15 CST 2008
Alexandre Julliard wrote:
> Gerald Pfeifer <gerald at pfeifer.com> writes:
>
>
>> Index: dlls/kernel32/task.c
>> ===================================================================
>> RCS file: /home/wine/wine/dlls/kernel32/task.c,v
>> retrieving revision 1.2
>> diff -u -3 -p -r1.2 task.c
>> --- dlls/kernel32/task.c 13 Oct 2006 10:27:19 -0000 1.2
>> +++ dlls/kernel32/task.c 3 Jan 2008 21:33:44 -0000
>> @@ -57,7 +57,7 @@ typedef struct
>> WORD magic; /* Thunks signature */
>> WORD unused;
>> WORD free; /* Head of the free list */
>> - WORD thunks[4]; /* Each thunk is 4 words long */
>> + WORD thunks[]; /* Each thunk is 4 words long */
>> } THUNKS;
>>
>
> That syntax is not portable.
We have the ANYSIZE_ARRAY macro in include/winnt.h for this exact purpose.
--
Rob Shearman
More information about the wine-devel
mailing list