about summary refs log tree commit diff stats
path: root/src/libtools/libc_net32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtools/libc_net32.c')
-rw-r--r--src/libtools/libc_net32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtools/libc_net32.c b/src/libtools/libc_net32.c
index c06472fc..d625b3a7 100644
--- a/src/libtools/libc_net32.c
+++ b/src/libtools/libc_net32.c
@@ -148,6 +148,7 @@ EXPORT void* my32_gethostbyname(x64emu_t* emu, const char* a)
         strings[idx++] = 0;
     }
     // done
+    emu->libc_herr = h_errno;
     return &ret;
 }