puae 2.3.0

This commit is contained in:
Mustafa 'GnoStiC' TUFAN 2010-09-23 15:44:24 +03:00
parent 2d238d198d
commit 59312de99d

View File

@ -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