forked from KolibriOS/kolibrios
fixed bug in dll.inc (net branch)
git-svn-id: svn://kolibrios.org@2604 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
f10b2375d4
commit
705460f746
@ -4,11 +4,14 @@ proc mem.Alloc size ;/////////////////////////////////////////////////////////
|
|||||||
push ebx ecx
|
push ebx ecx
|
||||||
mov eax,[size]
|
mov eax,[size]
|
||||||
lea ecx,[eax+4+4095]
|
lea ecx,[eax+4+4095]
|
||||||
and ecx,not 4095
|
and ecx, not 4095
|
||||||
mcall 68,12
|
mcall 68,12
|
||||||
|
test eax, eax
|
||||||
|
jz @f
|
||||||
add ecx,-4
|
add ecx,-4
|
||||||
mov [eax],ecx
|
mov [eax],ecx
|
||||||
add eax,4
|
add eax,4
|
||||||
|
@@:
|
||||||
pop ecx ebx
|
pop ecx ebx
|
||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
Loading…
Reference in New Issue
Block a user