fix load_file

git-svn-id: svn://kolibrios.org@663 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2007-10-21 02:16:16 +00:00
parent 39d4709d97
commit 81e27e05e7
4 changed files with 3 additions and 5 deletions

View File

@ -514,7 +514,6 @@ proc load_file stdcall, file_name:dword
file2 dd ?
endl
push ebx
push esi
push edi
@ -564,7 +563,6 @@ proc load_file stdcall, file_name:dword
pop eax
pop edi
pop esi
pop ebx
ret
.cleanup:
stdcall kernel_free, [file]
@ -573,7 +571,6 @@ proc load_file stdcall, file_name:dword
xor ebx, ebx
pop edi
pop esi
pop ebx
ret
endp

View File

@ -130,7 +130,7 @@ kernel_export:
dd szSysMsgBoardStr , sys_msg_board_str
dd szGetCurrentTask , get_curr_task
dd szLoadFile , load_file ;stdcall
dd szLoadFile , load_file ;retval eax, ebx
dd szSendEvent , send_event
dd szSetMouseData , set_mouse_data ;stdcall
dd szSleep , delay_ms

View File

@ -817,7 +817,6 @@ proc user_free stdcall, base:dword
ret
.cantfree:
xor eax, eax
pop edi
pop ebx
pop esi
ret

View File

@ -82,6 +82,7 @@ proc alloc_pages stdcall, count:dword
.ok:
sub ecx, edi
inc ecx
push esi
mov esi, edi
xor eax, eax
rep stosb
@ -91,6 +92,7 @@ proc alloc_pages stdcall, count:dword
mov ebx, [count]
shl ebx, 3
sub [pg_data.pages_free], ebx
pop esi
pop edi
pop ebx
popfd