Skip to content
Permalink
Browse files

Steam: Fix double encoding of username (fixes #781)

  • Loading branch information...
Robyer committed Dec 7, 2017
1 parent ed44109 commit 420614f4a7aabd062ba5d40fa8f872e1160ea162
Showing with 3 additions and 3 deletions.
  1. +2 −2 protocols/Steam/src/steam_proto.cpp
  2. +1 −1 protocols/Steam/src/version.h
@@ -338,8 +338,8 @@ int CSteamProto::SetStatus(int new_status)
}
else
{
ptrA username(mir_urlEncode(ptrA(mir_utf8encodeW(getWStringA("Username")))));
if (username == NULL || username[0] == '\0')
T2Utf username(getWStringA("Username"));
if (username == NULL)
{
m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus);
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 11
#define __RELEASE_NUM 6
#define __BUILD_NUM 2
#define __BUILD_NUM 3

#include <stdver.h>

0 comments on commit 420614f

Please sign in to comment.
You can’t perform that action at this time.