[Bug 15416] New: Garena : division by zero in comctl32

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Sep 25 18:05:20 CDT 2008


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

           Summary: Garena : division by zero in comctl32
           Product: Wine
           Version: 1.1.5
          Platform: PC
               URL: http://www.garena.com/
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: comctl32
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: matej.spindler at email.si


Shortly after starting garena it crashes with :

wine: Unhandled division by zero at address 0x7e9295d8 (thread 0009), starting
debugger...

I traced the crash to:

dlls/comctl32/listview.c:1716:  
vertInfo.nPage /= infoPtr->nItemHeight;

changing the line to:

vertInfo.nPage /= (infoPtr->nItemHeight == 0) ? 1 : infoPtr->nItemHeight ;

lets garena continue, but there are problems later on (not in comctl32), but
thats for another bugreport.



LP Matej


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