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
1 changed files with 4 additions and 4 deletions

View File

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