Safer memory allocation

This commit is contained in:
pagefault
2003-10-31 17:39:20 +00:00
parent 632a8fb461
commit fd0480c7e5
2 changed files with 19 additions and 2 deletions

View File

@@ -664,7 +664,11 @@ NEWSYM allocptr
; cmp byte[OSPort],3
; jne near .nostate
%ifndef __MSDOS__
AllocmemFail 4096*128*16+4096+65536*16,StateBackup,outofmemory
EXTSYM allocblah
pushad
call allocblah
popad
; AllocmemFail 4096*128*16+4096+65536*16,StateBackup,outofmemory
mov eax,[StateBackup]
add eax,4096*128*16
mov [BitConv32Ptr],eax