Fix build-error in DirectSoundPlayer2 when building Debug, signedness mismatch in an assert triggers a warning that causes an error.

Originally committed to SVN as r3758.
This commit is contained in:
Niels Martin Hansen 2009-11-04 04:16:25 +00:00
parent 129585a2f8
commit cd4905fe34

View file

@ -478,8 +478,9 @@ do_fill_buffer:
DWORD buf1sz, buf2sz; DWORD buf1sz, buf2sz;
void *buf1, *buf2; void *buf1, *buf2;
assert(bytes_needed > 0);
assert(buffer_offset < bufSize); assert(buffer_offset < bufSize);
assert(bytes_needed <= bufSize); assert((DWORD)bytes_needed <= bufSize);
HRESULT res = bfr->Lock(buffer_offset, bytes_needed, &buf1, &buf1sz, &buf2, &buf2sz, 0); HRESULT res = bfr->Lock(buffer_offset, bytes_needed, &buf1, &buf1sz, &buf2, &buf2sz, 0);
switch (res) switch (res)