From c3d48eb2fa2e43a19716b52fa5e545f643486b6b Mon Sep 17 00:00:00 2001 From: Gliniak Date: Sun, 29 Nov 2020 17:07:59 +0100 Subject: [PATCH] [XAM/Net] Implemented WSASetLastError --- src/xenia/kernel/xam/xam_net.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/kernel/xam/xam_net.cc b/src/xenia/kernel/xam/xam_net.cc index a28b788e3..7b37e2b94 100644 --- a/src/xenia/kernel/xam/xam_net.cc +++ b/src/xenia/kernel/xam/xam_net.cc @@ -958,6 +958,11 @@ dword_result_t NetDll___WSAFDIsSet(dword_t socket_handle, } DECLARE_XAM_EXPORT1(NetDll___WSAFDIsSet, kNetworking, kImplemented); +void NetDll_WSASetLastError(dword_t error_code) { + XThread::SetLastError(error_code); +} +DECLARE_XAM_EXPORT1(NetDll_WSASetLastError, kNetworking, kImplemented); + void RegisterNetExports(xe::cpu::ExportResolver* export_resolver, KernelState* kernel_state) {}