On Fri Sep 15 09:02:53 2023 +0000, Huw Davies wrote:
Isn't this compiler bug going to affect a lot of places in Wine?
I don't think it's a compiler bug. In this case the apts table is not the last field of the struct.
I've looked on all the structures in wingdi.h. There are more structures that use variable sized array that is not last in the structure. All the other places already needed casts and were not affected. Similar code in gdi32 already has an implicit cast.
I don't know if any other part of wine is affected but such structures are uncommon - fields after variable sized array can't be accessed in normal way.