http://bugs.winehq.org/show_bug.cgi?id=19870
--- Comment #7 from Dmitry Timoshkov dmitry@codeweavers.com 2009-08-29 00:56:51 --- (In reply to comment #6)
It was: error: invalid conversion from 'BOOL (*)(HMONITOR__*, HDC__*, tagRECT*, LPARAM)' to 'BOOL (*)(HMONITOR__*, HDC__*, tagRECT*, LPARAM)' Not obvious that issue was in calling conventions.
Report that to gcc/mingw developers.
And type casting was hiding it.
If you need to use type casts that's a good sign that something is wrong. Besides the calling convention '&' is redundant as well.
I thought it's wine bug because same cross-compiled app was ok on win, and crashed on wine. No different compilers, no different includes.
Perhaps a slightly different stack layout.