summaryrefslogtreecommitdiff
path: root/plugins/TooltipNotify/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TooltipNotify/src')
-rw-r--r--plugins/TooltipNotify/src/TooltipNotify.cpp6
-rw-r--r--plugins/TooltipNotify/src/TooltipNotify.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/TooltipNotify/src/TooltipNotify.cpp b/plugins/TooltipNotify/src/TooltipNotify.cpp
index 8aae437349..c8b1c5bea2 100644
--- a/plugins/TooltipNotify/src/TooltipNotify.cpp
+++ b/plugins/TooltipNotify/src/TooltipNotify.cpp
@@ -167,8 +167,8 @@ int CTooltipNotify::ProtoAck(WPARAM, LPARAM lParam)
ACKDATA *ack = (ACKDATA*)lParam;
if ((ack == nullptr) || (ack->type != ACKTYPE_STATUS)) return 0;
- WORD wNewStatus = (WORD)ack->lParam;
- WORD wOldStatus = (UINT_PTR)ack->hProcess;
+ uint16_t wNewStatus = (uint16_t)ack->lParam;
+ uint16_t wOldStatus = (UINT_PTR)ack->hProcess;
if (wOldStatus == wNewStatus) return 0; //Useless message.
char *szProtocol = (char *)ack->szModule;
@@ -218,7 +218,7 @@ int CTooltipNotify::ContactSettingChanged(WPARAM hContact, LPARAM lParam)
if (idle && !m_sOptions.bIdle)
return 0;
- WORD wNewStatus = cws->value.wVal;
+ uint16_t wNewStatus = cws->value.wVal;
switch (wNewStatus) {
case ID_STATUS_OFFLINE:
if (!m_sOptions.bOffline) return 0;
diff --git a/plugins/TooltipNotify/src/TooltipNotify.h b/plugins/TooltipNotify/src/TooltipNotify.h
index 03e955ce6c..d18b192c39 100644
--- a/plugins/TooltipNotify/src/TooltipNotify.h
+++ b/plugins/TooltipNotify/src/TooltipNotify.h
@@ -52,8 +52,8 @@ private:
uint8_t bAlpha;
uint8_t bLDblClick;
uint8_t bPrefixProto;
- WORD wDuration;
- WORD wStartupDelay;
+ uint16_t wDuration;
+ uint16_t wStartupDelay;
uint8_t bIgnoreNew;
uint8_t bIgnoreUnknown;
} m_sOptions;