mirror of
https://github.com/libretro/PUAE.git
synced 2024-11-24 00:09:54 +00:00
puae 2.3.0
This commit is contained in:
parent
2d238d198d
commit
59312de99d
10
src/memory.c
10
src/memory.c
@ -2062,8 +2062,9 @@ uae_u8 *mapped_malloc (size_t s, const TCHAR *file)
|
||||
int id;
|
||||
void *answer;
|
||||
shmpiece *x;
|
||||
static int recurse;
|
||||
|
||||
if (!canjit()) {
|
||||
if (!canjit ()) {
|
||||
nocanbang ();
|
||||
return xcalloc (uae_u8, s + 4);
|
||||
}
|
||||
@ -2097,8 +2098,13 @@ uae_u8 *mapped_malloc (size_t s, const TCHAR *file)
|
||||
shm_start = x;
|
||||
return (uae_u8*)answer;
|
||||
}
|
||||
if (recurse)
|
||||
return NULL;
|
||||
nocanbang ();
|
||||
return mapped_malloc (s, file);
|
||||
recurse++;
|
||||
uae_u8 *r = mapped_malloc (s, file);
|
||||
recurse--;
|
||||
return r;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user