dll.inc clean up

git-svn-id: svn://kolibrios.org@5940 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pathoswithin 2015-12-01 19:25:21 +00:00
parent eb687aadb4
commit 00c9a2265f

View File

@ -122,17 +122,8 @@ endp
proc mem.ReAlloc, mptr, size proc mem.ReAlloc, mptr, size
push ebx ecx edx push ebx ecx edx
mov ecx, [size] mov ecx, [size]
or ecx, ecx
jz @f
@@:
mov edx, [mptr] mov edx, [mptr]
or edx, edx
jz @f
@@:
mcall 68, 20 mcall 68, 20
or eax, eax
jz @f
@@:
pop edx ecx ebx pop edx ecx ebx
ret ret
endp endp
@ -140,9 +131,6 @@ endp
proc mem.Free, mptr proc mem.Free, mptr
push ebx ecx push ebx ecx
mov ecx,[mptr] mov ecx,[mptr]
or ecx,ecx
jz @f
@@:
mcall 68, 13 mcall 68, 13
pop ecx ebx pop ecx ebx
ret ret