http://bugs.winehq.org/show_bug.cgi?id=19870
--- Comment #6 from Vladimir vladimir.strakh@gmail.com 2009-08-28 09:57:09 --- 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. And type casting was hiding it.
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.