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

acmStreamSize with a value of 0 to convert -- native allows it.
This commit is contained in:
Michael Günnewig 2003-07-21 20:00:17 +00:00 committed by Alexandre Julliard
parent 4d37b6691b
commit ea150db949
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}