[Bug 19870] crash on EnumDisplayMonitors() callback return

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Aug 28 08:41:47 CDT 2009


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


Juan Lang <juan_lang at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




--- Comment #2 from Juan Lang <juan_lang at yahoo.com>  2009-08-28 08:41:47 ---
Your callback has the wrong calling convention, so of course it crashes:

BOOL EnumMonitor(HMONITOR hMon, HDC hdcMonitor, LPRECT rect, LPARAM parm)

That needs to be:
BOOL WINAPI EnumMonitor(HMONITOR hMon, HDC hdcMonitor, LPRECT rect, LPARAM
parm)

See the definition of MONITORENUMPROC in winuser.h.

-- 
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