summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_history.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
commit6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch)
tree2e8bb660c908b54914abd562af8aafa4a486c846 /protocols/Steam/src/steam_history.cpp
parenta61c8728b379057fe7f0a0d86fe0b037598229dd (diff)
less TCHARs:
- TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_history.cpp')
-rw-r--r--protocols/Steam/src/steam_history.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Steam/src/steam_history.cpp b/protocols/Steam/src/steam_history.cpp
index 75e40a5674..8a16ee5bf3 100644
--- a/protocols/Steam/src/steam_history.cpp
+++ b/protocols/Steam/src/steam_history.cpp
@@ -28,13 +28,13 @@ void CSteamProto::OnGotConversations(const HttpResponse *response)
JSONNode *session = json_at(nsessions, i);
node = json_get(session, "accountid_friend");
- const char *who = AccountIdToSteamId(_ttoi64(ptrT(json_as_string(node))));
+ const char *who = AccountIdToSteamId(_wtoi64(ptrT(json_as_string(node))));
node = json_get(session, "last_message");
- time_t lastMessageTS = _ttoi64(ptrT(json_as_string(node)));
+ time_t lastMessageTS = _wtoi64(ptrT(json_as_string(node)));
/*node = json_get(session, "last_view");
- time_t last_view = _ttoi64(ptrT(json_as_string(node)));
+ time_t last_view = _wtoi64(ptrT(json_as_string(node)));
node = json_get(session, "unread_message_count");
long unread_count = json_as_int(node);*/
@@ -79,14 +79,14 @@ void CSteamProto::OnGotHistoryMessages(const HttpResponse *response, void *arg)
JSONNode *message = json_at(nmessages, i - 1);
node = json_get(message, "accountid");
- const char *authorSteamId = AccountIdToSteamId(_ttoi64(ptrT(json_as_string(node))));
+ const char *authorSteamId = AccountIdToSteamId(_wtoi64(ptrT(json_as_string(node))));
node = json_get(message, "message");
ptrT text(json_as_string(node));
T2Utf szMessage(text);
node = json_get(message, "timestamp");
- time_t timestamp = _ttoi64(ptrT(json_as_string(node)));
+ time_t timestamp = _wtoi64(ptrT(json_as_string(node)));
// Ignore already existing messages
if (timestamp <= m_lastMessageTS)