[Bug 27468] QQ International crashes when clicking on password form if dlls/user32/hook.c is build with -O2

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Apr 20 00:01:44 CDT 2013


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

Dan Kegel <dank at kegel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #44214|0                           |1
        is obsolete|                            |

--- Comment #50 from Dan Kegel <dank at kegel.com> 2013-04-20 00:01:44 CDT ---
Created attachment 44223
  --> http://bugs.winehq.org/attachment.cgi?id=44223
Wrap hook proc in case it uses wrong calling convention

Jacek suggests it could be a calling convention mismatch... and sure enough,
the address of the local variable ret in call_hook_proc changes.
As Jacek suggests, the thing to do is insulate ourselves from the value of
SP on return from the proc, as in WINPROC_wrapper().
This patch works for me with QQ International on 32 bits.
Does it work for you, too?

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