Commit ea150db9 authored by Michael Günnewig's avatar Michael Günnewig Committed by Alexandre Julliard

Fixed wrong assert in PCM_round, which didn't allow to call

acmStreamSize with a value of 0 to convert -- native allows it.
parent 4d37b669
......@@ -913,7 +913,7 @@ static LRESULT PCM_StreamClose(PACMDRVSTREAMINSTANCE adsi)
*/
static inline DWORD PCM_round(DWORD a, DWORD b, DWORD c)
{
assert(a && b && c);
assert(c);
/* to be sure, always return an entire number of c... */
return ((double)a * (double)b + (double)c - 1) / (double)c;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment