Skip to content

Commit c9d48c7

Browse files
committed
Fix windows
1 parent f539edb commit c9d48c7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,9 @@ void CSteamNetworkingICESession::OnPacketReceived( const RecvPktInfo_t &info, IC
17141714
if ( nByteCount > 0 )
17151715
{
17161716
SpewVerboseGroup( nLogLevel, "ICE: Sending a STUN response to %s from %s.", SteamNetworkingIPAddrRender( fromAddr, true ).c_str(), SteamNetworkingIPAddrRender( pInterface->m_pSocket->m_boundAddr, true ).c_str() );
1717-
iovec iov{ responseBuffer, (size_t)nByteCount };
1717+
iovec iov;
1718+
iov.iov_base = (void*)responseBuffer;
1719+
iov.iov_len = nByteCount;
17181720
pInterface->SendPacketGather( 1, &iov, nByteCount, fromAddr, localCandidate.m_addrTURNServer );
17191721
}
17201722
}

0 commit comments

Comments
 (0)