diff options
| author | rajdakin <rajdakin@gmail.com> | 2024-09-10 17:46:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-10 17:46:10 +0200 |
| commit | 8187c35ea8ffa4d115b53306f6d530cea47ea412 (patch) | |
| tree | 3af38a39a89abde4863706afbb8c0aedc26f3822 /src/wrapped/wrappedlibc.c | |
| parent | 0d6028d83753ce93aff9aecc8443de657663071c (diff) | |
| download | box64-8187c35ea8ffa4d115b53306f6d530cea47ea412.tar.gz box64-8187c35ea8ffa4d115b53306f6d530cea47ea412.zip | |
[WRAPPERS] Fixed some wrong wrappings (#1814)
Diffstat (limited to 'src/wrapped/wrappedlibc.c')
| -rw-r--r-- | src/wrapped/wrappedlibc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index fd0eb377..72de9c7d 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1178,6 +1178,18 @@ EXPORT void my_vwarn(x64emu_t* emu, void* fmt, x64_va_list_t b) { #endif return vwarn(fmt, VARARGS); } +EXPORT void my_vwarnx(x64emu_t* emu, void* fmt, x64_va_list_t b) { + if (!fmt) + return warnx(NULL); + #ifdef CONVERT_VALIST + (void)emu; + CONVERT_VALIST(b); + #else + myStackAlignValist(emu, (const char*)fmt, emu->scratch, b); + PREPARE_VALIST; + #endif + return vwarnx(fmt, VARARGS); +} EXPORT void my_warn(x64emu_t *emu, void* fmt, void* b) { myStackAlign(emu, (const char*)fmt, b, emu->scratch, R_EAX, 1); PREPARE_VALIST; |