From 610c63cd151cdc0ea7712db5eebf0ed56f56da4e Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 13 Dec 2024 15:38:13 +0100 Subject: [BOX32][WRAPPER] Added a few more libc and libresolv 32bits wrapped functions --- src/wrapped32/wrappedlibresolv.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/wrapped32/wrappedlibresolv.c') 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" -- cgit 1.4.1