forked from KolibriOS/kolibrios
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 ?
|
file2 dd ?
|
||||||
endl
|
endl
|
||||||
|
|
||||||
push ebx
|
|
||||||
push esi
|
push esi
|
||||||
push edi
|
push edi
|
||||||
|
|
||||||
@ -564,7 +563,6 @@ proc load_file stdcall, file_name:dword
|
|||||||
pop eax
|
pop eax
|
||||||
pop edi
|
pop edi
|
||||||
pop esi
|
pop esi
|
||||||
pop ebx
|
|
||||||
ret
|
ret
|
||||||
.cleanup:
|
.cleanup:
|
||||||
stdcall kernel_free, [file]
|
stdcall kernel_free, [file]
|
||||||
@ -573,7 +571,6 @@ proc load_file stdcall, file_name:dword
|
|||||||
xor ebx, ebx
|
xor ebx, ebx
|
||||||
pop edi
|
pop edi
|
||||||
pop esi
|
pop esi
|
||||||
pop ebx
|
|
||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ kernel_export:
|
|||||||
|
|
||||||
dd szSysMsgBoardStr , sys_msg_board_str
|
dd szSysMsgBoardStr , sys_msg_board_str
|
||||||
dd szGetCurrentTask , get_curr_task
|
dd szGetCurrentTask , get_curr_task
|
||||||
dd szLoadFile , load_file ;stdcall
|
dd szLoadFile , load_file ;retval eax, ebx
|
||||||
dd szSendEvent , send_event
|
dd szSendEvent , send_event
|
||||||
dd szSetMouseData , set_mouse_data ;stdcall
|
dd szSetMouseData , set_mouse_data ;stdcall
|
||||||
dd szSleep , delay_ms
|
dd szSleep , delay_ms
|
||||||
|
@ -817,7 +817,6 @@ proc user_free stdcall, base:dword
|
|||||||
ret
|
ret
|
||||||
.cantfree:
|
.cantfree:
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
pop edi
|
|
||||||
pop ebx
|
pop ebx
|
||||||
pop esi
|
pop esi
|
||||||
ret
|
ret
|
||||||
|
@ -82,6 +82,7 @@ proc alloc_pages stdcall, count:dword
|
|||||||
.ok:
|
.ok:
|
||||||
sub ecx, edi
|
sub ecx, edi
|
||||||
inc ecx
|
inc ecx
|
||||||
|
push esi
|
||||||
mov esi, edi
|
mov esi, edi
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
rep stosb
|
rep stosb
|
||||||
@ -91,6 +92,7 @@ proc alloc_pages stdcall, count:dword
|
|||||||
mov ebx, [count]
|
mov ebx, [count]
|
||||||
shl ebx, 3
|
shl ebx, 3
|
||||||
sub [pg_data.pages_free], ebx
|
sub [pg_data.pages_free], ebx
|
||||||
|
pop esi
|
||||||
pop edi
|
pop edi
|
||||||
pop ebx
|
pop ebx
|
||||||
popfd
|
popfd
|
||||||
|
Loading…
Reference in New Issue
Block a user