mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 14:37:41 +00:00
Fix bugs with plNetAddress.
This allows the patcher to successfully connect to both GateKeeper and FileSrv.
This commit is contained in:
@ -638,7 +638,7 @@ static SOCKET ConnectSocket (unsigned localPort, const NetAddress & addr) {
|
||||
}
|
||||
}
|
||||
|
||||
if (connect(s, (const sockaddr *) &addr, sizeof(addr))) {
|
||||
if (connect(s, (const sockaddr *) &addr.GetAddressInfo(), sizeof(AddressType))) {
|
||||
if (WSAGetLastError() != WSAEWOULDBLOCK) {
|
||||
LogMsg(kLogError, "sockegt connect failed");
|
||||
break;
|
||||
|
@ -342,7 +342,7 @@ void AsyncAddressLookupAddr (
|
||||
lookup->param = param;
|
||||
|
||||
plString str = address.GetHostString();
|
||||
lookup->name = str.toUtf16().GetData();
|
||||
wcsncpy(lookup->name, (const wchar_t*)str.ToUtf16().GetData(), 127);
|
||||
|
||||
s_critsect.Enter();
|
||||
{
|
||||
|
Reference in New Issue
Block a user