diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-12-27 18:08:06 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-12-27 18:08:06 +0100 |
| commit | 80b357da41743af7ba37857098c4d0c0784b31e0 (patch) | |
| tree | 6da33321104d771baaab65a91ebe6e2dc0ee4db9 /src/wrapped32/generated/wrapper32.c | |
| parent | a54f516447dc12e7de2af05cec2a4e3edaa36e75 (diff) | |
| download | box64-80b357da41743af7ba37857098c4d0c0784b31e0.tar.gz box64-80b357da41743af7ba37857098c4d0c0784b31e0.zip | |
[BOX32] Adapted signatures of 2 32bits libc wrapped functions
Diffstat (limited to 'src/wrapped32/generated/wrapper32.c')
| -rw-r--r-- | src/wrapped32/generated/wrapper32.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrapped32/generated/wrapper32.c b/src/wrapped32/generated/wrapper32.c index 4ae67aa8..1038a1de 100644 --- a/src/wrapped32/generated/wrapper32.c +++ b/src/wrapped32/generated/wrapper32.c @@ -212,6 +212,7 @@ typedef void* (*pFn_t)(void*); typedef uintptr_t (*hEv_t)(void); typedef uintptr_t (*hFv_t)(void); typedef void* (*aEa_t)(void*); +typedef char* (*tEv_t)(void); typedef char* (*tEi_t)(int32_t); typedef char* (*tEu_t)(uint32_t); typedef char* (*tEp_t)(void*); @@ -2017,6 +2018,7 @@ void pFn_32(x64emu_t *emu, uintptr_t fcn) { pFn_t fn = (pFn_t)fcn; void *aligned void hEv_32(x64emu_t *emu, uintptr_t fcn) { hEv_t fn = (hEv_t)fcn; errno = emu->libc_err; R_EAX = to_hash(fn()); emu->libc_err = errno; } void hFv_32(x64emu_t *emu, uintptr_t fcn) { hFv_t fn = (hFv_t)fcn; R_EAX = to_hash(fn()); } void aEa_32(x64emu_t *emu, uintptr_t fcn) { aEa_t fn = (aEa_t)fcn; errno = emu->libc_err; R_EAX = to_locale(fn(from_locale(from_ptri(ptr_t, R_ESP + 4)))); emu->libc_err = errno; } +void tEv_32(x64emu_t *emu, uintptr_t fcn) { tEv_t fn = (tEv_t)fcn; errno = emu->libc_err; R_EAX = to_cstring(fn()); emu->libc_err = errno; } void tEi_32(x64emu_t *emu, uintptr_t fcn) { tEi_t fn = (tEi_t)fcn; errno = emu->libc_err; R_EAX = to_cstring(fn(from_ptri(int32_t, R_ESP + 4))); emu->libc_err = errno; } void tEu_32(x64emu_t *emu, uintptr_t fcn) { tEu_t fn = (tEu_t)fcn; errno = emu->libc_err; R_EAX = to_cstring(fn(from_ptri(uint32_t, R_ESP + 4))); emu->libc_err = errno; } void tEp_32(x64emu_t *emu, uintptr_t fcn) { tEp_t fn = (tEp_t)fcn; errno = emu->libc_err; R_EAX = to_cstring(fn(from_ptriv(R_ESP + 4))); emu->libc_err = errno; } |