Do not allocate in STRAM if TTRAM allocation is mandatory
--HG-- branch : SDL-1.2
This commit is contained in:
parent
0006859772
commit
f156e90deb
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ void *Atari_SysMalloc(Uint32 size, Uint16 alloc_type)
|
||||||
if (atari_mxalloc_avail) {
|
if (atari_mxalloc_avail) {
|
||||||
return (void *) Mxalloc(size, alloc_type);
|
return (void *) Mxalloc(size, alloc_type);
|
||||||
} else {
|
} else {
|
||||||
|
if (alloc_type==MX_TTRAM) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
return (void *) Malloc(size);
|
return (void *) Malloc(size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue