diff options
-rw-r--r-- | plugins/MessageState/src/global.h | 8 | ||||
-rw-r--r-- | plugins/MessageState/src/messagestate.cpp | 2 | ||||
-rw-r--r-- | plugins/MessageState/src/services.cpp | 2 | ||||
-rw-r--r-- | plugins/MessageState/src/utils.cpp | 7 |
4 files changed, 6 insertions, 13 deletions
diff --git a/plugins/MessageState/src/global.h b/plugins/MessageState/src/global.h index a689701802..21b12b27dc 100644 --- a/plugins/MessageState/src/global.h +++ b/plugins/MessageState/src/global.h @@ -34,10 +34,10 @@ __forceinline bool CheckProtoSupport(const char *szProto) void InitServices();
-void IconsUpdate(MCONTACT);
-void SetSRMMIcon(MCONTACT hContact, int type, time_t time = 0);
-__int64 GetPreciousTime(void);
-int OnModulesLoaded(WPARAM, LPARAM);
bool HasUnread(MCONTACT hContact);
+void IconsUpdate(MCONTACT hContact);
+void SetSRMMIcon(MCONTACT hContact, int type, time_t time = 0);
+
+int OnModulesLoaded(WPARAM, LPARAM);
#endif //_GLOBAL_H_
\ No newline at end of file diff --git a/plugins/MessageState/src/messagestate.cpp b/plugins/MessageState/src/messagestate.cpp index 99e47ced00..42063a2a00 100644 --- a/plugins/MessageState/src/messagestate.cpp +++ b/plugins/MessageState/src/messagestate.cpp @@ -81,7 +81,7 @@ static int OnEventFilterAdd(WPARAM hContact, LPARAM lParam) {
DBEVENTINFO *dbei = (DBEVENTINFO *)lParam;
if ((dbei->flags & DBEF_SENT) && CheckProtoSupport(dbei->szModule)) {
- __time64_t dwTime = GetPreciousTime();
+ time_t dwTime = time(0);
FindContact(hContact)->setSent(dwTime);
if (db_mc_isSub(hContact))
FindContact(db_mc_getMeta(hContact))->setSent(dwTime);
diff --git a/plugins/MessageState/src/services.cpp b/plugins/MessageState/src/services.cpp index 8dc3fa46a3..5487eb448c 100644 --- a/plugins/MessageState/src/services.cpp +++ b/plugins/MessageState/src/services.cpp @@ -13,7 +13,7 @@ static INT_PTR UpdateService(WPARAM hContact, LPARAM lParam) {
auto *p = FindContact(hContact);
- __time64_t currTime = GetPreciousTime();
+ time_t currTime = time(0);
if (currTime > p->dwLastReadTime) {
p->dwLastReadTime = currTime;
p->type = lParam;
diff --git a/plugins/MessageState/src/utils.cpp b/plugins/MessageState/src/utils.cpp index 40371be1a5..bd21cc208b 100644 --- a/plugins/MessageState/src/utils.cpp +++ b/plugins/MessageState/src/utils.cpp @@ -26,10 +26,3 @@ bool HasUnread(MCONTACT hContact) return p->dwLastReadTime != 0;
}
-
-__int64 GetPreciousTime()
-{
- LARGE_INTEGER li;
- QueryPerformanceCounter(&li);
- return li.QuadPart;
-}
|