HaikuDepot: SharedBitmap: Enlarge maximum stream size

This is used for screenshots and some are larger than 128KiB.
This commit is contained in:
Stephan Aßmus 2014-12-26 22:38:54 +01:00
parent 2997e05b4f
commit 7b434ea483

View File

@ -71,7 +71,7 @@ SharedBitmap::SharedBitmap(BPositionIO& data)
fMimeType()
{
status_t status = data.GetSize(&fSize);
const off_t kMaxSize = 128 * 1024;
const off_t kMaxSize = 1024 * 1024;
if (status == B_OK && fSize > 0 && fSize <= kMaxSize) {
fBuffer = new(std::nothrow) uint8[fSize];
if (fBuffer != NULL) {