From cddcd7483a7c472598af098e759e5d309024f606 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 20:31:39 +0300 Subject: DWORD -> uint32_t --- plugins/wbOSD/src/events.cpp | 6 +++--- plugins/wbOSD/src/options.cpp | 6 +++--- plugins/wbOSD/src/stdafx.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/wbOSD/src') diff --git a/plugins/wbOSD/src/events.cpp b/plugins/wbOSD/src/events.cpp index 6355db4b9f..2b6f0b2372 100644 --- a/plugins/wbOSD/src/events.cpp +++ b/plugins/wbOSD/src/events.cpp @@ -60,7 +60,7 @@ int ProtoAck(WPARAM, LPARAM lparam) return 0; if (ack->result == ACKRESULT_SUCCESS && (LPARAM)ack->hProcess != ack->lParam) { - DWORD ann = g_plugin.getDword("announce", DEFAULT_ANNOUNCE); + uint32_t ann = g_plugin.getDword("announce", DEFAULT_ANNOUNCE); if (ann & (1 << (ack->lParam - ID_STATUS_OFFLINE))) { wchar_t buffer[512]; mir_snwprintf(buffer, TranslateT("%s is %s"), Clist_GetContactDisplayName(ack->hContact), Clist_GetStatusModeDescription(ack->lParam, 0)); @@ -92,7 +92,7 @@ int ContactSettingChanged(WPARAM wParam, LPARAM lParam) if (Ignore_IsIgnored(wParam, IGNOREEVENT_USERONLINE)) return 0; - DWORD dwStatuses = MAKELPARAM(oldStatus, newStatus); + uint32_t dwStatuses = MAKELPARAM(oldStatus, newStatus); NotifyEventHooks(hHookContactStatusChanged, wParam, (LPARAM)dwStatuses); return 0; @@ -102,7 +102,7 @@ int ContactStatusChanged(WPARAM wParam, LPARAM lParam) { MCONTACT hContact = (MCONTACT)wParam; uint16_t newStatus = HIWORD(lParam); - DWORD ann = g_plugin.getDword("announce", DEFAULT_ANNOUNCE); + uint32_t ann = g_plugin.getDword("announce", DEFAULT_ANNOUNCE); logmsg("ContactStatusChanged1"); diff --git a/plugins/wbOSD/src/options.cpp b/plugins/wbOSD/src/options.cpp index 472411de62..0908dda4f3 100644 --- a/plugins/wbOSD/src/options.cpp +++ b/plugins/wbOSD/src/options.cpp @@ -13,7 +13,7 @@ COLORREF pencustcolors[16]; const static osdmsg defstr = { L"", 0, RGB(0, 0, 0), nullptr, 0 }; -void FillCheckBoxTree(HWND hwndTree, DWORD style) +void FillCheckBoxTree(HWND hwndTree, uint32_t style) { logmsg("FillCheckBoxTree"); @@ -30,9 +30,9 @@ void FillCheckBoxTree(HWND hwndTree, DWORD style) } } -DWORD MakeCheckBoxTreeFlags(HWND hwndTree) +uint32_t MakeCheckBoxTreeFlags(HWND hwndTree) { - DWORD flags = 0; + uint32_t flags = 0; logmsg("MakeCheckBoxTreeFlags"); diff --git a/plugins/wbOSD/src/stdafx.h b/plugins/wbOSD/src/stdafx.h index 41a85c54ab..3a81b1f417 100644 --- a/plugins/wbOSD/src/stdafx.h +++ b/plugins/wbOSD/src/stdafx.h @@ -92,7 +92,7 @@ typedef struct _plgsettings { wchar_t msgformat[256]; int winx, winy, winxpos, winypos, alpha, transparent, timeout; COLORREF clr_msg, clr_status, clr_shadow, bkclr; - DWORD announce, showWhen; + uint32_t announce, showWhen; LOGFONT lf; } plgsettings; -- cgit v1.2.3