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

View file

@ -913,7 +913,7 @@ static LRESULT PCM_StreamClose(PACMDRVSTREAMINSTANCE adsi)
*/ */
static inline DWORD PCM_round(DWORD a, DWORD b, DWORD c) 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... */ /* to be sure, always return an entire number of c... */
return ((double)a * (double)b + (double)c - 1) / (double)c; return ((double)a * (double)b + (double)c - 1) / (double)c;
} }