Krn: Fixed the calling convention for the "load_pe_driver" function

This commit is contained in:
Mikhail Frolov 2025-01-19 19:26:48 +05:00
parent 8f7ee79d05
commit 4cfb1a27b5
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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