summaryrefslogtreecommitdiff
path: root/plugins/Console/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
commitcddcd7483a7c472598af098e759e5d309024f606 (patch)
treeb0a227d6e087c41958cc84d27bc323353248aae5 /plugins/Console/src
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'plugins/Console/src')
-rw-r--r--plugins/Console/src/Console.cpp18
-rw-r--r--plugins/Console/src/init.cpp2
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/Console/src/Console.cpp b/plugins/Console/src/Console.cpp
index 099b0a3984..9e308f055d 100644
--- a/plugins/Console/src/Console.cpp
+++ b/plugins/Console/src/Console.cpp
@@ -98,10 +98,10 @@ static int gSingleMode = 0;
static int gLimit = 0;
static int gSeparator = 0;
-static DWORD gWrapLen = DEFAULT_WRAPLEN;
+static uint32_t gWrapLen = DEFAULT_WRAPLEN;
-static DWORD OutMsgs = 0;
-static DWORD InMsgs = 0;
+static uint32_t OutMsgs = 0;
+static uint32_t InMsgs = 0;
static HICON hIcons[15] = {};
static HGENMENU hMenu = nullptr;
@@ -371,8 +371,8 @@ static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LP
LVITEM lvi = { 0 };
int last = 0x7fffffff;
wchar_t szBreak;
- DWORD len, tmplen;
- DWORD wraplen = gWrapLen;
+ uint32_t len, tmplen;
+ uint32_t wraplen = gWrapLen;
wchar_t *str = ((DUMPMSG *)lParam)->szMsg;
lvi.iItem = 0x7fffffff;
@@ -402,7 +402,7 @@ static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LP
while (str != nullptr) {
lvi.pszText = &str[0];
- tmplen = len = (DWORD)mir_wstrlen(lvi.pszText);
+ tmplen = len = (uint32_t)mir_wstrlen(lvi.pszText);
while (len > wraplen) {
szBreak = lvi.pszText[wraplen];
@@ -924,9 +924,9 @@ static int OnFastDump(WPARAM wParam, LPARAM lParam)
{
if (pActive) {
LOGMSG *logMsg = (LOGMSG *)lParam;
- DWORD headlen = (DWORD)mir_strlen(logMsg->pszHead);
- DWORD msglen = (DWORD)mir_strlen(logMsg->pszMsg);
- DWORD len = (headlen + msglen + 1) * sizeof(wchar_t) + sizeof(DUMPMSG);
+ uint32_t headlen = (uint32_t)mir_strlen(logMsg->pszHead);
+ uint32_t msglen = (uint32_t)mir_strlen(logMsg->pszMsg);
+ uint32_t len = (headlen + msglen + 1) * sizeof(wchar_t) + sizeof(DUMPMSG);
DUMPMSG *dumpMsg = (DUMPMSG *)mir_alloc(len);
wchar_t *str = dumpMsg->szMsg;
diff --git a/plugins/Console/src/init.cpp b/plugins/Console/src/init.cpp
index 7750135fc2..c733fab1f7 100644
--- a/plugins/Console/src/init.cpp
+++ b/plugins/Console/src/init.cpp
@@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "stdafx.h"
-DWORD mirandaVer;
+uint32_t mirandaVer;
CMPlugin g_plugin;
static IconItem iconList[] =