http://bugs.winehq.org/show_bug.cgi?id=27584
--- Comment #3 from bailey937@yahoo.com 2011-06-25 06:38:22 CDT --- Thank you for translating it.
With the MS compiler, you need to move the declaration "int i = 0;" in onPaintBroken() up (it doesn't like variables being declared in the middle of a function in a .c file).
I built your translated example, and it reproduces the bug just like my original sample.
Thanks again.