diff --git a/src/xenia/kernel/xam/xam_net.cc b/src/xenia/kernel/xam/xam_net.cc index 6fc3db0cc..6c4fed539 100644 --- a/src/xenia/kernel/xam/xam_net.cc +++ b/src/xenia/kernel/xam/xam_net.cc @@ -288,6 +288,9 @@ dword_result_t NetDll_WSACleanup_entry(dword_t caller) { } DECLARE_XAM_EXPORT1(NetDll_WSACleanup, kNetworking, kImplemented); +// Instead of using dedicated storage for WSA error like on OS. +// Xbox shares space between normal error codes and WSA errors. +// This under the hood returns directly value received from RtlGetLastError. dword_result_t NetDll_WSAGetLastError_entry() { return XThread::GetLastError(); }