about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibncursesw.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-09-26 12:06:01 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-09-26 12:06:01 +0200
commit783e9a4b7442506765fe9687d006e0cd17c3c2f1 (patch)
tree8f29384177f4fa05f02bdb8c52bbc84d561bc5b3 /src/wrapped/wrappedlibncursesw.c
parent202a067a6177e4a9d6b31e1089cd81368ae9d4b3 (diff)
downloadbox64-783e9a4b7442506765fe9687d006e0cd17c3c2f1.tar.gz
box64-783e9a4b7442506765fe9687d006e0cd17c3c2f1.zip
More untested support for loongarch64 va_list
Diffstat (limited to 'src/wrapped/wrappedlibncursesw.c')
-rwxr-xr-xsrc/wrapped/wrappedlibncursesw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibncursesw.c b/src/wrapped/wrappedlibncursesw.c
index f602086a..1b110f1c 100755
--- a/src/wrapped/wrappedlibncursesw.c
+++ b/src/wrapped/wrappedlibncursesw.c
@@ -77,7 +77,12 @@ EXPORT int myw_vwprintw(x64emu_t* emu, void* p, void* fmt, x64_va_list_t b)
 {
     libncursesw_my_t *my = (libncursesw_my_t*)my_lib->priv.w.p2;
 
+    #ifdef CONVERT_VALIST
     CONVERT_VALIST(b);
+    #else
+    myStackAlignValist(emu, (const char*)fmt, emu->scratch, b);
+    PREPARE_VALIST;
+    #endif
     return my->vwprintw(p, fmt, VARARGS);
 }