diff options
Diffstat (limited to 'plugins/Nudge/src')
-rw-r--r-- | plugins/Nudge/src/main.cpp | 14 | ||||
-rw-r--r-- | plugins/Nudge/src/nudge.h | 2 | ||||
-rw-r--r-- | plugins/Nudge/src/options.cpp | 4 | ||||
-rw-r--r-- | plugins/Nudge/src/stdafx.h | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index d9957a0fff..8dbf4c33a2 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -94,8 +94,8 @@ static int NudgeReceived(WPARAM hContact, LPARAM lParam) {
char *protoName = Proto_GetBaseAccountName(hContact);
- DWORD currentTimestamp = time(0);
- DWORD nudgeSentTimestamp = lParam ? (DWORD)lParam : currentTimestamp;
+ uint32_t currentTimestamp = time(0);
+ uint32_t nudgeSentTimestamp = lParam ? (uint32_t)lParam : currentTimestamp;
int diff = currentTimestamp - db_get_dw(hContact, "Nudge", "LastReceived", currentTimestamp - 30);
int diff2 = nudgeSentTimestamp - db_get_dw(hContact, "Nudge", "LastReceived2", nudgeSentTimestamp - 30);
@@ -155,7 +155,7 @@ static int NudgeReceived(WPARAM hContact, LPARAM lParam) if (DefaultNudge.useIgnoreSettings && Ignore_IsIgnored(hContact, IGNOREEVENT_USERONLINE))
return 0;
- DWORD Status = CallService(MS_CLIST_GETSTATUSMODE, 0, 0);
+ uint32_t Status = CallService(MS_CLIST_GETSTATUSMODE, 0, 0);
if (((DefaultNudge.statusFlags & NUDGE_ACC_ST0) && (Status <= ID_STATUS_OFFLINE)) ||
((DefaultNudge.statusFlags & NUDGE_ACC_ST1) && (Status == ID_STATUS_ONLINE)) ||
((DefaultNudge.statusFlags & NUDGE_ACC_ST2) && (Status == ID_STATUS_AWAY)) ||
@@ -288,14 +288,14 @@ void Nudge_SentStatus(CNudgeElement *n, MCONTACT hContact) DBEVENTINFO dbei = {};
dbei.szModule = MODULENAME;
dbei.flags = DBEF_SENT | DBEF_UTF;
- dbei.timestamp = (DWORD)time(0);
+ dbei.timestamp = (uint32_t)time(0);
dbei.eventType = 1;
- dbei.cbBlob = (DWORD)mir_strlen(buff) + 1;
+ dbei.cbBlob = (uint32_t)mir_strlen(buff) + 1;
dbei.pBlob = (uint8_t*)buff;
db_event_add(hContact, &dbei);
}
-void Nudge_ShowStatus(CNudgeElement *n, MCONTACT hContact, DWORD timestamp)
+void Nudge_ShowStatus(CNudgeElement *n, MCONTACT hContact, uint32_t timestamp)
{
T2Utf buff(n->recText);
@@ -304,7 +304,7 @@ void Nudge_ShowStatus(CNudgeElement *n, MCONTACT hContact, DWORD timestamp) dbei.eventType = 1;
dbei.flags = DBEF_UTF;
dbei.timestamp = timestamp;
- dbei.cbBlob = (DWORD)mir_strlen(buff) + 1;
+ dbei.cbBlob = (uint32_t)mir_strlen(buff) + 1;
dbei.pBlob = (uint8_t*)buff;
db_event_add(hContact, &dbei);
}
diff --git a/plugins/Nudge/src/nudge.h b/plugins/Nudge/src/nudge.h index 8b48a3ccf8..899b83b4b8 100644 --- a/plugins/Nudge/src/nudge.h +++ b/plugins/Nudge/src/nudge.h @@ -42,7 +42,7 @@ struct CNudgeElement : public MZeroedObject bool shakeChat;
bool enabled;
bool autoResend;
- DWORD statusFlags;
+ uint32_t statusFlags;
int iProtoNumber;
HANDLE hEvent;
diff --git a/plugins/Nudge/src/options.cpp b/plugins/Nudge/src/options.cpp index fada736a01..daede3ec81 100644 --- a/plugins/Nudge/src/options.cpp +++ b/plugins/Nudge/src/options.cpp @@ -125,7 +125,7 @@ static INT_PTR CALLBACK DlgProcShakeOpt(HWND hwnd,UINT msg,WPARAM wParam,LPARAM || (HWND)lParam == GetDlgItem(hwnd, IDC_SSCALE_CLIST) || (HWND)lParam == GetDlgItem(hwnd, IDC_SSCALE_CHAT))
{
wchar_t szBuf[20];
- DWORD dwPos = SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
+ uint32_t dwPos = SendMessage((HWND)lParam, TBM_GETPOS, 0, 0);
mir_snwprintf(szBuf, L"%d", dwPos);
if ((HWND)lParam == GetDlgItem(hwnd, IDC_SNUMBER_CLIST))
SetDlgItemText(hwnd, IDC_LNUMBER_CLIST, szBuf);
@@ -334,7 +334,7 @@ static INT_PTR CALLBACK DlgProcNudgeOpt(HWND hwnd, UINT msg, WPARAM wParam, LPAR {
TVHITTESTINFO ht = { 0 };
- DWORD dwpos = GetMessagePos();
+ uint32_t dwpos = GetMessagePos();
POINTSTOPOINT(ht.pt, MAKEPOINTS(dwpos));
MapWindowPoints(HWND_DESKTOP, ((LPNMHDR)lParam)->hwndFrom, &ht.pt, 1);
diff --git a/plugins/Nudge/src/stdafx.h b/plugins/Nudge/src/stdafx.h index a93ce13dca..7ba2deb812 100644 --- a/plugins/Nudge/src/stdafx.h +++ b/plugins/Nudge/src/stdafx.h @@ -48,7 +48,7 @@ void Nudge_ShowPopup(CNudgeElement*, MCONTACT, wchar_t *); /*
*
****************************/
-void Nudge_ShowStatus(CNudgeElement*, MCONTACT, DWORD timestamp);
+void Nudge_ShowStatus(CNudgeElement*, MCONTACT, uint32_t timestamp);
/*
*
|