From 1039b2829a264280493ba0fa979214fe024dc70c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 17:06:04 +0300 Subject: WORD -> uint16_t --- plugins/NewAwaySysMod/src/MsgEventAdded.cpp | 2 +- plugins/NewAwaySysMod/src/Services.cpp | 4 ++-- plugins/NewAwaySysMod/src/stdafx.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/NewAwaySysMod') diff --git a/plugins/NewAwaySysMod/src/MsgEventAdded.cpp b/plugins/NewAwaySysMod/src/MsgEventAdded.cpp index fcb7197e0c..4338e1f4b6 100644 --- a/plugins/NewAwaySysMod/src/MsgEventAdded.cpp +++ b/plugins/NewAwaySysMod/src/MsgEventAdded.cpp @@ -188,7 +188,7 @@ int MsgEventAdded(WPARAM hContact, LPARAM lParam) return 0; if (AutoreplyOptData.GetValue(IDC_REPLYDLG_DONTREPLYINVISIBLE)) { - WORD ApparentMode = db_get_w(hContact, szProto, "ApparentMode", 0); + uint16_t ApparentMode = db_get_w(hContact, szProto, "ApparentMode", 0); if ((iMode == ID_STATUS_INVISIBLE && (!(Flags1 & PF1_INVISLIST) || ApparentMode != ID_STATUS_ONLINE)) || (Flags1 & PF1_VISLIST && ApparentMode == ID_STATUS_OFFLINE)) return 0; } diff --git a/plugins/NewAwaySysMod/src/Services.cpp b/plugins/NewAwaySysMod/src/Services.cpp index 32411224e4..b540d5f792 100644 --- a/plugins/NewAwaySysMod/src/Services.cpp +++ b/plugins/NewAwaySysMod/src/Services.cpp @@ -31,10 +31,10 @@ struct NAS_PROTOINFOv1 wchar_t *wszMsg; wchar_t *tszMsg; }; - WORD status; + uint16_t status; }; -__inline void PSSetStatus(char *szProto, WORD Status, int bNoClistSetStatusMode = false) // just a helper function that sets the status and handles szProto==NULL correctly +__inline void PSSetStatus(char *szProto, uint16_t Status, int bNoClistSetStatusMode = false) // just a helper function that sets the status and handles szProto==NULL correctly { g_ProtoStates[szProto].m_status = Status; if (szProto) diff --git a/plugins/NewAwaySysMod/src/stdafx.h b/plugins/NewAwaySysMod/src/stdafx.h index 949de5f317..c7cab6df0d 100644 --- a/plugins/NewAwaySysMod/src/stdafx.h +++ b/plugins/NewAwaySysMod/src/stdafx.h @@ -254,7 +254,7 @@ struct NAS_ISWINFOv1 char *szProto; MCONTACT hContact; char *szMsg; - WORD status; + uint16_t status; }; #define MTYPE_AUTOONLINE 0xE7 // required to support ICQ Plus online status messages -- cgit v1.2.3