[Bug 19870] crash on EnumDisplayMonitors() callback return

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Aug 29 00:56:52 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=19870





--- Comment #7 from Dmitry Timoshkov <dmitry at 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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list