SysCall: Fixed bug in IA32 CallInstallMultipleProtocolInterfaces().

This commit is contained in:
Mikhail Krichanov 2024-03-22 18:11:00 +03:00
parent 99d5d6b5a9
commit 93743d58e1

View File

@ -65,17 +65,17 @@ ASM_PFX(CallInstallMultipleProtocolInterfaces):
mov ebp, esp mov ebp, esp
; Prepare stack for call. ; Prepare stack for call.
mov eax, [ebp + 2 * 4] ; eax = ArgList mov eax, [ebp + 3 * 4] ; eax = ArgList
mov ecx, [ebp + 3 * 4] ; ecx = ArgListSize mov ecx, [ebp + 4 * 4] ; ecx = ArgListSize
lea eax, [eax + ecx * 4] lea eax, [eax + ecx * 4]
copy: copy:
sub eax, 4 sub eax, 4
push dword [eax] push dword [eax]
sub ecx, 1 sub ecx, 1
jnz copy jnz copy
push dword [ebp + 4] push dword [ebp + 2 * 4]
call [ebp + 4 * 4] call [ebp + 5 * 4]
; Step over Function arguments. ; Step over Function arguments.
mov esp, ebp mov esp, ebp