mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
Change AppendableMemoryStream overflows to debug messages, so people stop believing them to be the cause of errors in bug reports :P
svn-id: r12775
This commit is contained in:
parent
587622d664
commit
9301f0b0ff
@ -225,7 +225,7 @@ void AppendableMemoryStream<stereo, is16Bit, isUnsigned>::append(const byte *dat
|
||||
uint32 size_to_end_of_buffer = _bufferEnd - _end;
|
||||
len -= size_to_end_of_buffer;
|
||||
if ((_end < _pos) || (_bufferStart + len >= _pos)) {
|
||||
warning("AppendableMemoryStream: buffer overflow (A)");
|
||||
debug(2, "AppendableMemoryStream: buffer overflow (A)");
|
||||
return;
|
||||
}
|
||||
memcpy(_end, data, size_to_end_of_buffer);
|
||||
@ -233,7 +233,7 @@ void AppendableMemoryStream<stereo, is16Bit, isUnsigned>::append(const byte *dat
|
||||
_end = _bufferStart + len;
|
||||
} else {
|
||||
if ((_end < _pos) && (_end + len >= _pos)) {
|
||||
warning("AppendableMemoryStream: buffer overflow (B)");
|
||||
debug(2, "AppendableMemoryStream: buffer overflow (B)");
|
||||
return;
|
||||
}
|
||||
memcpy(_end, data, len);
|
||||
|
Loading…
Reference in New Issue
Block a user