summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Steam/Steam.vcxproj5
-rw-r--r--protocols/Steam/src/stdafx.h5
-rw-r--r--protocols/Steam/src/steam_login.cpp2
3 files changed, 11 insertions, 1 deletions
diff --git a/protocols/Steam/Steam.vcxproj b/protocols/Steam/Steam.vcxproj
index 160884db1b..a8b0ce0f3f 100644
--- a/protocols/Steam/Steam.vcxproj
+++ b/protocols/Steam/Steam.vcxproj
@@ -131,6 +131,11 @@
<ResourceCompile Include="res\Resource.rc" />
<ResourceCompile Include="res\version.rc" />
</ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\libs\zlib\zlib.vcxproj">
+ <Project>{e2a369cd-eda3-414f-8ad0-e732cd7ee68c}</Project>
+ </ProjectReference>
+ </ItemGroup>
<ItemDefinitionGroup>
<ClCompile>
<LanguageStandard>stdcpp17</LanguageStandard>
diff --git a/protocols/Steam/src/stdafx.h b/protocols/Steam/src/stdafx.h
index 37c008b5b1..7a5621f2be 100644
--- a/protocols/Steam/src/stdafx.h
+++ b/protocols/Steam/src/stdafx.h
@@ -38,6 +38,11 @@
#include <m_http.h>
#include <m_system.h>
+extern "C"
+{
+ #include "../../libs/zlib/src/unzip.h"
+}
+
#include "resource.h"
#include "version.h"
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp
index 4ea0e6cf9d..cac890ac18 100644
--- a/protocols/Steam/src/steam_login.cpp
+++ b/protocols/Steam/src/steam_login.cpp
@@ -252,7 +252,7 @@ void CSteamProto::OnPollSession(const CAuthenticationPollAuthSessionStatusRespon
CMsgIPAddress privateIp;
privateIp.ip_case = CMSG_IPADDRESS__IP_V4;
- privateIp.v4 = 0;
+ privateIp.v4 = crc32(0xBABABEDA, (const Bytef *)szMachineName, (unsigned)mir_strlen(szMachineName));
CMsgClientLogon request;
request.access_token = reply.refresh_token;