prevented get.int function in libini from destroying edx

git-svn-id: svn://kolibrios.org@2603 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2012-04-12 10:13:30 +00:00
parent a34e3e8e18
commit f10b2375d4

View File

@ -459,7 +459,7 @@ locals
f_addr dd ? f_addr dd ?
endl endl
push ebx esi edi push edx ebx esi edi
xor eax, eax xor eax, eax
mov [f.fh], eax mov [f.fh], eax
@ -509,14 +509,14 @@ endl
@@: invoke file.close, [f.fh] @@: invoke file.close, [f.fh]
invoke mem.free, [f.buf] invoke mem.free, [f.buf]
mov eax, edx mov eax, edx
pop edi esi ebx pop edi esi ebx edx
ret ret
.exit_error: .exit_error:
invoke file.close, [f.fh] invoke file.close, [f.fh]
invoke mem.free, [f.buf] invoke mem.free, [f.buf]
mov eax, [_def_val] mov eax, [_def_val]
pop edi esi ebx pop edi esi ebx edx
ret ret
endp endp