forked from KolibriOS/kolibrios
Krn: Fixed the calling convention for the "load_pe_driver" function
This commit is contained in:
@@ -81,7 +81,7 @@ __exports:
|
|||||||
pci_write32, 'PciWrite32', \ ; stdcall
|
pci_write32, 'PciWrite32', \ ; stdcall
|
||||||
\
|
\
|
||||||
get_pid, 'GetPid', \
|
get_pid, 'GetPid', \
|
||||||
get_service, 'GetService', \ ;
|
get_service, 'GetService', \ ; stdcall
|
||||||
reg_service, 'RegService', \ ; stdcall
|
reg_service, 'RegService', \ ; stdcall
|
||||||
attach_int_handler, 'AttachIntHandler', \ ; stdcall
|
attach_int_handler, 'AttachIntHandler', \ ; stdcall
|
||||||
user_alloc, 'UserAlloc', \ ; stdcall
|
user_alloc, 'UserAlloc', \ ; stdcall
|
||||||
|
@@ -1333,7 +1333,7 @@ f68call: ; keep this table closer to main code
|
|||||||
|
|
||||||
align 4
|
align 4
|
||||||
proc load_pe_driver stdcall, file:dword, cmdline:dword
|
proc load_pe_driver stdcall, file:dword, cmdline:dword
|
||||||
push esi
|
push ebx esi
|
||||||
|
|
||||||
stdcall load_PE, [file]
|
stdcall load_PE, [file]
|
||||||
test eax, eax
|
test eax, eax
|
||||||
@@ -1352,13 +1352,13 @@ proc load_pe_driver stdcall, file:dword, cmdline:dword
|
|||||||
|
|
||||||
mov [eax + SRV.base], ebx
|
mov [eax + SRV.base], ebx
|
||||||
mov [eax + SRV.entry], esi
|
mov [eax + SRV.entry], esi
|
||||||
pop esi
|
pop esi ebx
|
||||||
ret
|
ret
|
||||||
.fail_init:
|
.fail_init:
|
||||||
stdcall kernel_free, ebx ;clear memory driver
|
stdcall kernel_free, ebx ;clear memory driver
|
||||||
.fail:
|
.fail:
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
pop esi
|
pop esi ebx
|
||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user