Don't clear memory twice under OS3
This commit is contained in:
parent
b29bd85274
commit
f51b7780e3
|
@ -39,10 +39,8 @@ void *ami_misc_allocvec_clear(int size, UBYTE value)
|
|||
#ifdef __amigaos4__
|
||||
return AllocVecTags(size, AVT_ClearWithValue, value, TAG_DONE);
|
||||
#else
|
||||
void *mem = AllocVec(size, MEMF_CLEAR | MEMF_ANY);
|
||||
if (mem && (value != 0)) {
|
||||
memset(mem, value, size);
|
||||
}
|
||||
void *mem = AllocVec(size, MEMF_ANY);
|
||||
if (mem) memset(mem, value, size);
|
||||
return mem;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue