http://bugs.winehq.org/show_bug.cgi?id=29127
--- Comment #4 from Andrew Eikum aeikum@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.