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