[Bug 34570] New: Game crash because of improperly cloning MMIOINFO struct in MMIO_Open

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Sep 22 02:13:38 CDT 2013


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

             Bug #: 34570
           Summary: Game crash because of improperly cloning MMIOINFO
                    struct in MMIO_Open
           Product: Wine
           Version: 1.7.2
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: winmm&mci
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: jiashulu at gmail.com
    Classification: Unclassified


Created attachment 46023
  --> http://bugs.winehq.org/attachment.cgi?id=46023
A quick fix

The game "Custom reido F" crashes on start. 

The problem is that the whole adwInfo[] array in MMIOINFO struct is used by the
game, but wine only clones adwInfo[0] in MMIO_Open. A quick fix is attached.

What is more, I checked MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd757322%28v=vs.85%29.aspx
and found that adwInfo[] array should have 4 elements instead of 3 in wine.
This perhaps will cause problems in other programs. I am not sure which APIs
are affected by this.

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