[XAM/Net] Added note about sharing storage between Rtl and WSA errors

This commit is contained in:
Gliniak
2021-11-17 22:07:35 +01:00
parent fa332e13de
commit ad6aff001b

View File

@@ -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();
}