diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-10 21:10:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-10 21:10:59 +0300 |
commit | 671e6f538ee7bd136312da90c37edde27d3fed3b (patch) | |
tree | f34f016475ddde248920d6117e059e937a7284cc /protocols | |
parent | 15337f5ce35244b0a48a0143553ca31b9457501b (diff) |
Steam:
- fixes #2247 (adding a contact with Cyrillic name crashes Miranda);
- version bump
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Steam/src/steam_contacts.cpp | 15 | ||||
-rw-r--r-- | protocols/Steam/src/version.h | 2 |
2 files changed, 6 insertions, 11 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp index aa2e2a7f90..38b20bc573 100644 --- a/protocols/Steam/src/steam_contacts.cpp +++ b/protocols/Steam/src/steam_contacts.cpp @@ -294,21 +294,16 @@ void CSteamProto::ContactIsAskingAuth(MCONTACT hContact) return; // create auth request event - ptrA steamId(getStringA(hContact, "SteamID")); - ptrA token(getStringA("TokenSecret")); + ptrA steamId(getUStringA(hContact, "SteamID")); + ptrA token(getUStringA("TokenSecret")); SendRequest(new GetUserSummariesRequest(token, steamId), &CSteamProto::OnGotUserSummaries); - ptrA nickName(getStringA(hContact, "Nick")); + ptrA nickName(getUStringA(hContact, "Nick")); if (nickName == nullptr) nickName = mir_strdup(steamId); - ptrA firstName(getStringA(hContact, "FirstName")); - if (firstName == nullptr) - firstName = mir_strdup(""); - - ptrA lastName(getStringA(hContact, "LastName")); - if (lastName == nullptr) - lastName = mir_strdup(""); + ptrA firstName(getUStringA(hContact, "FirstName")); + ptrA lastName(getUStringA(hContact, "LastName")); char reason[MAX_PATH]; mir_snprintf(reason, Translate("%s has added you to contact list"), nickName.get()); diff --git a/protocols/Steam/src/version.h b/protocols/Steam/src/version.h index 75a23a5951..f8229c0bed 100644 --- a/protocols/Steam/src/version.h +++ b/protocols/Steam/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 11
#define __RELEASE_NUM 6
-#define __BUILD_NUM 6
+#define __BUILD_NUM 7
#include <stdver.h>
|