[xam] Added debug-level logging of WSAGetLastError result
This commit is contained in:
committed by
Radosław Gliński
parent
6284bfc21c
commit
e7dcee4c39
@@ -310,7 +310,9 @@ DECLARE_XAM_EXPORT1(NetDll_WSACleanup, kNetworking, kImplemented);
|
|||||||
// Xbox shares space between normal error codes and WSA errors.
|
// Xbox shares space between normal error codes and WSA errors.
|
||||||
// This under the hood returns directly value received from RtlGetLastError.
|
// This under the hood returns directly value received from RtlGetLastError.
|
||||||
dword_result_t NetDll_WSAGetLastError_entry() {
|
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);
|
DECLARE_XAM_EXPORT1(NetDll_WSAGetLastError, kNetworking, kImplemented);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user