about summary refs log tree commit diff stats
path: root/src/wrapped32/wrappedlibresolv.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-13 15:38:13 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-13 15:38:13 +0100
commit610c63cd151cdc0ea7712db5eebf0ed56f56da4e (patch)
tree5709b5bffbfca96b3c1961da10065565b69ac640 /src/wrapped32/wrappedlibresolv.c
parentfa3db3df11f0d10a4a46f5ec5b0aaeaf34656d72 (diff)
downloadbox64-610c63cd151cdc0ea7712db5eebf0ed56f56da4e.tar.gz
box64-610c63cd151cdc0ea7712db5eebf0ed56f56da4e.zip
[BOX32][WRAPPER] Added a few more libc and libresolv 32bits wrapped functions
Diffstat (limited to 'src/wrapped32/wrappedlibresolv.c')
-rw-r--r--src/wrapped32/wrappedlibresolv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wrapped32/wrappedlibresolv.c b/src/wrapped32/wrappedlibresolv.c
index 7f7bf0e1..c314592e 100644
--- a/src/wrapped32/wrappedlibresolv.c
+++ b/src/wrapped32/wrappedlibresolv.c
@@ -37,4 +37,12 @@ EXPORT int my32_res_query(x64emu_t* emu, void* dname, int class, int type, void*
     return ret;
 }
 
+EXPORT int my32_res_search(x64emu_t* emu, void* dname, int class, int type, void* answer, int anslen)
+{
+    convert_res_state_to_64(emu->res_state_64, emu->res_state_32);
+    int ret = my->__res_search(dname, class, type, answer, anslen);
+    emu->libc_herr = h_errno;
+    return ret;
+}
+
 #include "wrappedlib_init32.h"