Skip to content

Commit 6697637

Browse files
committed
Fix VS2015 compile
1 parent 727b894 commit 6697637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/steamnetworkingsockets/steamnetworkingsockets_shared.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@ STEAMNETWORKINGSOCKETS_INTERFACE void SteamAPI_SteamNetworkingIdentity_ToString(
17671767

17681768
STEAMNETWORKINGSOCKETS_INTERFACE bool SteamAPI_SteamNetworkingIdentity_ParseString( SteamNetworkingIdentity *pIdentity, size_t sizeofIdentity, const char *pszStr )
17691769
{
1770-
const size_t sizeofHeader = offsetof( SteamNetworkingIdentity, m_cbSize ) + sizeof( SteamNetworkingIdentity::m_cbSize );
1770+
const size_t sizeofHeader = offsetof( SteamNetworkingIdentity, m_cbSize ) + sizeof( pIdentity->m_cbSize );
17711771
COMPILE_TIME_ASSERT( sizeofHeader == 8 );
17721772

17731773
// Safety check against totally bogus size

0 commit comments

Comments
 (0)