Reserve 10KB for error reporting.
Alle checks waren succesvol
The build was successful.

This commit is contained in:
Rafal Kupiec 2018-09-01 17:54:45 +02:00
bovenliggende 8fcb3c608a
commit 383fe01943
Getekend door: belliash
GPG sleutel-ID: 4E829243E0CFE6B4

Bestand weergeven

@ -115,7 +115,7 @@ static const SyMemMethods sOSAllocMethods = {
0
};
static sxi32 MemBackendCalculate(SyMemBackend *pBackend, sxi32 nBytes) {
if(pBackend->pHeap->nLimit && (pBackend->pHeap->nSize + nBytes > pBackend->pHeap->nLimit)) {
if(pBackend->pHeap->nLimit && (pBackend->pHeap->nSize + nBytes > pBackend->pHeap->nLimit - 10240)) {
if(pBackend->xMemError) {
pBackend->xMemError(pBackend->pUserData);
}