From f644f1f721bc15378d928fa15f1fdb5331e7c6c5 Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Wed, 27 Mar 2019 18:51:37 -0700 Subject: [PATCH] Fix uninitialized AppID. This would cause clients to complain that their certs cannot be used becuase they were for different "apps". We probably need to add an interface to set this, so that this code can properly interop with the Steam code running a real app. --- .../clientlib/csteamnetworkingsockets.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp b/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp index 637dafd..1336498 100644 --- a/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp +++ b/src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp @@ -288,6 +288,11 @@ bool CSteamNetworkingSockets::BInitGameNetworkingSockets( const SteamNetworkingI else CacheIdentity(); + // Dummy AppID. (Zero is a reserved value, don't use that.) + // If we want to be able to interop with the Steam code, + // we're going to need a way to set this, probably. + m_nAppID = 1; + return true; } #endif