mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
Added ifdef to make windows only for WSAGetError
This commit is contained in:
@ -383,12 +383,15 @@ u32 CWII_IPC_HLE_Device_net_ssl::ExecuteCommandV(u32 _Parameter, SIOCtlVBuffer C
|
|||||||
if (returnValue == -1)
|
if (returnValue == -1)
|
||||||
returnValue = -SSL_ERROR_WANT_READ;
|
returnValue = -SSL_ERROR_WANT_READ;
|
||||||
if (returnValue == -5){
|
if (returnValue == -5){
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
int errorCode = WSAGetLastError();
|
int errorCode = WSAGetLastError();
|
||||||
if (errorCode == 10057){
|
if (errorCode == 10057){
|
||||||
returnValue = -SSL_ERROR_WANT_READ;
|
returnValue = -SSL_ERROR_WANT_READ;
|
||||||
}else{
|
}else{
|
||||||
WARN_LOG(WII_IPC_NET, "/dev/net/ssl::IOCtlV request IOCTLV_NET_SSL_READ ERRORCODE= %d", WSAGetLastError());
|
WARN_LOG(WII_IPC_NET, "/dev/net/ssl::IOCtlV request IOCTLV_NET_SSL_READ ERRORCODE= %d", errorCode);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
Memory::Write_U32(returnValue, _BufferIn);
|
Memory::Write_U32(returnValue, _BufferIn);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user