dll.inc clean up
git-svn-id: svn://kolibrios.org@5940 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
eb687aadb4
commit
00c9a2265f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user