mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-03-22 16:21:05 +00:00
Oh well, Z_Malloc() cannot return 0. Shame on me.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1175 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ea9c3b0360
commit
fdec86754c
1 changed files with 3 additions and 6 deletions
|
@ -1316,12 +1316,9 @@ void VARGS Menu_Abort (char *format, ...)
|
|||
char *buffer;
|
||||
int size = 1024*1024*8;
|
||||
buffer = Z_Malloc(size);
|
||||
if (buffer)
|
||||
{
|
||||
menuprogs->save_ents(menuprogs, buffer, &size, 3);
|
||||
COM_WriteFile("menucore.txt", buffer, size);
|
||||
Z_Free(buffer);
|
||||
}
|
||||
menuprogs->save_ents(menuprogs, buffer, &size, 3);
|
||||
COM_WriteFile("menucore.txt", buffer, size);
|
||||
Z_Free(buffer);
|
||||
}
|
||||
|
||||
MP_Shutdown();
|
||||
|
|
Loading…
Reference in a new issue