about summary refs log tree commit diff stats
path: root/src/wrapped32/wrappedlibresolv.c
diff options
context:
space:
mode:
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"