mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 11:52:34 +03:00
fix load_file
git-svn-id: svn://kolibrios.org@663 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
39d4709d97
commit
81e27e05e7
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -817,7 +817,6 @@ proc user_free stdcall, base:dword
|
||||
ret
|
||||
.cantfree:
|
||||
xor eax, eax
|
||||
pop edi
|
||||
pop ebx
|
||||
pop esi
|
||||
ret
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user