mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 535894 - Crash under asmXPTC_InvokeByIndex r=crowder
This commit is contained in:
parent
7a7bba15a0
commit
a79fd24e92
@ -18,7 +18,7 @@
|
||||
asmXPTC_InvokeByIndex
|
||||
mov r12, sp
|
||||
stmdb sp!, {r4 - r6, r12, lr} ; we're using registers 4, 5 and 6. Save them
|
||||
sub sp, sp, #16
|
||||
sub sp, sp, #24
|
||||
mov r6, r0 ; store 'that' (the target's this)
|
||||
mov r5, r1, lsl #2 ; a vtable index = methodIndex * 4
|
||||
mov r4, sp ; Back up the initial stack pointer.
|
||||
@ -56,7 +56,7 @@ asmXPTC_InvokeByIndex
|
||||
|
||||
mov sp, r4 ; Restore the original stack pointer.
|
||||
|
||||
add sp, sp, #16
|
||||
add sp, sp, #24
|
||||
ldmia sp!, {r4 - r6, sp, pc} ; Restore registers and return.
|
||||
|
||||
END
|
||||
|
Loading…
Reference in New Issue
Block a user