HaikuDepot: SharedBitmap: Enlarge maximum stream size
This is used for screenshots and some are larger than 128KiB.
This commit is contained in:
parent
2997e05b4f
commit
7b434ea483
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user