http://bugs.winehq.org/show_bug.cgi?id=28640
--- Comment #4 from Dan Kegel dank@kegel.com 2011-10-10 19:21:24 CDT --- Yup. Was using default gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1, recompiling just kernel32 with gcc-4.5 made the error go away.
So it's a wine bug and/or a gcc bug...