diff options
Diffstat (limited to 'protocols/Facebook/src')
-rw-r--r-- | protocols/Facebook/src/proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Facebook/src/server.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Facebook/src/proto.cpp b/protocols/Facebook/src/proto.cpp index c557c42dff..35776929f9 100644 --- a/protocols/Facebook/src/proto.cpp +++ b/protocols/Facebook/src/proto.cpp @@ -69,7 +69,7 @@ FacebookProto::FacebookProto(const char *proto_name, const wchar_t *username) : m_szClientID = getMStringA(DBKEY_CLIENT_ID); if (m_szClientID.IsEmpty()) { for (int i = 0; i < 20; i++) { - DWORD dwRandon; + uint32_t dwRandon; Utils_GetRandom(&dwRandon, sizeof(dwRandon)); int c = dwRandon % 62; if (c >= 0 && c < 26) diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index 5455806163..77550740d5 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -753,7 +753,7 @@ void FacebookProto::OnPublishPrivateMessage(const JSONNode &root) bool bSuccess = false; CMStringW wszFileName(FORMAT, L"%s\\STK{%S}.png", wszPath.c_str(), stickerId.c_str()); - DWORD dwAttrib = GetFileAttributesW(wszFileName); + uint32_t dwAttrib = GetFileAttributesW(wszFileName); if (dwAttrib == INVALID_FILE_ATTRIBUTES) { wszFileName.Format(L"%s\\STK{%S}.webp", wszPath.c_str(), stickerId.c_str()); dwAttrib = GetFileAttributesW(wszFileName); @@ -890,7 +890,7 @@ void FacebookProto::OnPublishPrivateMessage(const JSONNode &root) } else { // otherwise store a private message PROTORECVEVENT pre = {}; - pre.timestamp = DWORD(_wtoi64(metadata["timestamp"].as_mstring()) / 1000); + pre.timestamp = uint32_t(_wtoi64(metadata["timestamp"].as_mstring()) / 1000); pre.szMessage = (char *)szBody.c_str(); pre.szMsgId = (char *)szId.c_str(); @@ -994,7 +994,7 @@ void FacebookProto::OnPublishReadReceipt(const JSONNode &root) return; } - DWORD timestamp = _wtoi64(root["watermarkTimestampMs"].as_mstring()); + uint32_t timestamp = _wtoi64(root["watermarkTimestampMs"].as_mstring()); for (MEVENT ev = db_event_firstUnread(pUser->hContact); ev != 0; ev = db_event_next(pUser->hContact, ev)) { DBEVENTINFO dbei = {}; if (db_event_get(ev, &dbei)) |