forked from mia/Aegisub
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:
parent
129585a2f8
commit
cd4905fe34
1 changed files with 2 additions and 1 deletions
|
@ -478,8 +478,9 @@ do_fill_buffer:
|
|||
DWORD buf1sz, buf2sz;
|
||||
void *buf1, *buf2;
|
||||
|
||||
assert(bytes_needed > 0);
|
||||
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);
|
||||
switch (res)
|
||||
|
|
Loading…
Reference in a new issue