[xam] Added debug-level logging of WSAGetLastError result

This commit is contained in:
imaginebeingatcomputers 2023-11-14 10:36:48 -06:00 committed by Radosław Gliński
parent 6284bfc21c
commit e7dcee4c39
1 changed files with 3 additions and 1 deletions

View File

@ -310,7 +310,9 @@ DECLARE_XAM_EXPORT1(NetDll_WSACleanup, kNetworking, kImplemented);
// 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();
uint32_t last_error = XThread::GetLastError();
XELOGD("NetDll_WSAGetLastError: {}", last_error);
return last_error;
}
DECLARE_XAM_EXPORT1(NetDll_WSAGetLastError, kNetworking, kImplemented);