temporary fix to init crash

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1500 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-10-18 04:38:22 +00:00
parent 8db473c858
commit 6412c5d141
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ void *Hunk_AllocName (int size, char *name)
roundup &= ~(1024*128 - 1);
if (roundup != roundupold)
if (!hunk_low_used || roundup != roundupold)
if (!VirtualAlloc (hunk_base, roundup, MEM_COMMIT, PAGE_READWRITE))
{
char *buf;