[Bug 29127] Typing of the Dead demo crashes on launch

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Dec 2 14:14:44 CST 2011


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

--- Comment #4 from Andrew Eikum <aeikum at codeweavers.com> 2011-12-02 14:14:44 CST ---
Created attachment 37749
  --> http://bugs.winehq.org/attachment.cgi?id=37749
dsound: Validate format in primary buffer's SetFormat()

It is a divide by zero, but it's due to invalid input from the user. TOD asks
the primary buffer to set its format to have 2 bits per sample. Not so
surprisingly, that causes problems, eventually culminating in the divide by
zero.

We should validate the input to SetFormat. This patch fixes it, and it's away
to wine-patches now.

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