summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 17:06:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 17:06:04 +0300
commit1039b2829a264280493ba0fa979214fe024dc70c (patch)
tree8fa6a60eb46627582c372b56a4a1d4754d6732c3 /plugins/SendScreenshotPlus/src
parent62a186697df33c96dc1a6dac0f4dfc38652fb96f (diff)
WORD -> uint16_t
Diffstat (limited to 'plugins/SendScreenshotPlus/src')
-rw-r--r--plugins/SendScreenshotPlus/src/CSend.cpp6
-rw-r--r--plugins/SendScreenshotPlus/src/CSend.h2
-rw-r--r--plugins/SendScreenshotPlus/src/ctrl_button.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSend.cpp b/plugins/SendScreenshotPlus/src/CSend.cpp
index b57405b173..bea4f55d33 100644
--- a/plugins/SendScreenshotPlus/src/CSend.cpp
+++ b/plugins/SendScreenshotPlus/src/CSend.cpp
@@ -329,12 +329,12 @@ int CSend::OnSend(void *obj, WPARAM, LPARAM lParam)
case ACKTYPE_CHAT:
break;
case ACKTYPE_MESSAGE:
- self->DB_EventAdd((WORD)EVENTTYPE_MESSAGE);
+ self->DB_EventAdd((uint16_t)EVENTTYPE_MESSAGE);
break;
case ACKTYPE_FILE:
self->m_szEventMsg.Insert(0, "aaaa");
self->m_cbEventMsg += sizeof(DWORD);
- self->DB_EventAdd((WORD)EVENTTYPE_FILE);
+ self->DB_EventAdd((uint16_t)EVENTTYPE_FILE);
break;
}
self->Exit(ack->result);
@@ -343,7 +343,7 @@ int CSend::OnSend(void *obj, WPARAM, LPARAM lParam)
return 0;
}
-void CSend::DB_EventAdd(WORD EventType)
+void CSend::DB_EventAdd(uint16_t EventType)
{
DBEVENTINFO dbei = {};
dbei.szModule = m_pszProto;
diff --git a/plugins/SendScreenshotPlus/src/CSend.h b/plugins/SendScreenshotPlus/src/CSend.h
index 1f5d106bdd..3d45488836 100644
--- a/plugins/SendScreenshotPlus/src/CSend.h
+++ b/plugins/SendScreenshotPlus/src/CSend.h
@@ -99,7 +99,7 @@ protected:
wchar_t* m_ErrorTitle;
void Unhook(){if(m_hOnSend) {UnhookEvent(m_hOnSend);m_hOnSend = nullptr;}}
- void DB_EventAdd(WORD EventType);
+ void DB_EventAdd(uint16_t EventType);
static INT_PTR CALLBACK ResultDialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam);
diff --git a/plugins/SendScreenshotPlus/src/ctrl_button.cpp b/plugins/SendScreenshotPlus/src/ctrl_button.cpp
index 3cfb3a14ec..1a32592248 100644
--- a/plugins/SendScreenshotPlus/src/ctrl_button.cpp
+++ b/plugins/SendScreenshotPlus/src/ctrl_button.cpp
@@ -160,7 +160,7 @@ static void __fastcall PaintThemeButton(BTNCTRL *ctl, HDC hdcMem, LPRECT rcClien
{
RECT rcText = { 0, 0, 0, 0 };
wchar_t wszText[MAX_PATH] = { 0 };
- WORD ccText;
+ uint16_t ccText;
// Draw the flat button
if ((ctl->dwStyle & MBS_FLAT) && ctl->hThemeToolbar) {
@@ -259,7 +259,7 @@ static void __fastcall PaintButton(BTNCTRL *ctl, HDC hdcMem, LPRECT rcClient)
{
RECT rcText = { 0, 0, 0, 0 };
wchar_t szText[MAX_PATH] = { 0 };
- WORD ccText;
+ uint16_t ccText;
// Draw the flat button
if (ctl->dwStyle & MBS_FLAT) {