malloc/free do not change ebx now

git-svn-id: svn://kolibrios.org@3681 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse
2013-06-18 10:33:19 +00:00
parent eebdcf71f9
commit 1a7694e453
5 changed files with 5 additions and 14 deletions

View File

@@ -349,10 +349,8 @@ disk_add:
inc eax
cmp byte [ebx+eax-1], 0
jnz @b
; 2b. Call the heap manager. Note that it can change ebx.
push ebx
; 2b. Call the heap manager.
call malloc
pop ebx
; 2c. Check the result. If allocation failed, go to 7.
pop esi ; restore allocated pointer to DISK
test eax, eax