diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-09-19 19:00:19 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-09-19 19:00:19 +0200 |
| commit | 960ce86289fd35069ce417b0ed6e9556da5a1bb7 (patch) | |
| tree | c2154c98667c08a23dfd26dffcc7fb2d9d7908d1 /src/libtools | |
| parent | b2bd3103d878628d7b2eeb68f469c00c9574f94a (diff) | |
| download | box64-960ce86289fd35069ce417b0ed6e9556da5a1bb7.tar.gz box64-960ce86289fd35069ce417b0ed6e9556da5a1bb7.zip | |
Fixed some nasty copypasta on EmuCall
Diffstat (limited to 'src/libtools')
| -rwxr-xr-x | src/libtools/signals.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c index d4c88c01..1ac0dd4f 100755 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -290,7 +290,7 @@ uint64_t RunFunctionHandler(int* exit, x64_ucontext_t* sigcontext, uintptr_t fnc emu->segs_serial[i] = 0; if(nargs>6) - R_RSP -= (nargs-6)*4; // need to push in reverse order + R_RSP -= (nargs-6)*sizeof(void*); // need to push in reverse order uint64_t *p = (uint64_t*)R_RSP; @@ -313,7 +313,7 @@ uint64_t RunFunctionHandler(int* exit, x64_ucontext_t* sigcontext, uintptr_t fnc //EmuCall(emu, fnc); // avoid DynaCall for now DynaCall(emu, fnc); if(nargs>6) - R_RSP+=((nargs-6)*4); + R_RSP+=((nargs-6)*sizeof(void*)); emu->quitonlongjmp = oldquitonlongjmp; |