stdcall functions should restore esi

git-svn-id: svn://kolibrios.org@5295 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2014-12-30 12:22:23 +00:00
parent 1b6a5f1d9b
commit 158e212af1

View File

@ -43,14 +43,14 @@ proc __ksys_readfile stdcall uses ebx,filename:dword,position:dword,sizeblock:dw
mov ebx,[position]
mov ecx,[sizeblock]
mov edx,[buffer]
mov esi,[filename]
mov [fileinfo.subproc],eax
mov [fileinfo.offset_l],ebx
mov [fileinfo.offset_h],eax
mov [fileinfo.size],ecx
mov ecx,[filename]
mov [fileinfo.data],edx
mov [fileinfo.letter],al
mov [fileinfo.filename],esi
mov [fileinfo.filename],ecx
mov eax,70
mov ebx,fileinfo
@ -88,14 +88,14 @@ proc __ksys_appendtofile stdcall uses ebx,filename:dword,pos:dword,sizeblock:dwo
mov ebx,[pos]
mov ecx,[sizeblock]
mov edx,[data_append]
mov esi,[filename]
mov [fileinfo.subproc],dword 3
mov [fileinfo.offset_l],ebx
mov [fileinfo.offset_h],eax
mov [fileinfo.size],ecx
mov ecx,[filename]
mov [fileinfo.data],edx
mov [fileinfo.letter],al
mov [fileinfo.filename],esi
mov [fileinfo.filename],ecx
mov eax,70
mov ebx,fileinfo