[Bug 25354] New: King's Quest Collection Series (1997): setup.exe crashes

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Nov 29 22:25:44 CST 2010


           Summary: King's Quest Collection Series (1997): setup.exe
           Product: Wine
           Version: 1.3.7
          Platform: x86-64
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: -unknown
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: tristan_schmelcher at alumni.uwaterloo.ca

When attempting to install the game King's Quest Collection Series (the 1997
edition), setup.exe crashes partway through the installation. It happens every
time and always at the same place.

After debugging, I have determined that the problem is caused by incorrect
stack cleanup code in the 16-bit DDEML DLL. A number of functions in the .spec
file specify HSZ argument values as occupying one word on the stack, but in
fact they are a double word. As a result the stack cleanup code does not
increment the stack pointer by enough, so upon return the calling code's stack
pointer is not restored to the correct value.

I have attached a patch that changes the type of all HSZ arguments in the spec
to "long", which fixes the bug. (I will submit it to wine-patches 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