summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_menu.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-03-04 17:55:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-03-04 17:55:53 +0000
commit56cfe30444ead1fb844ed5d5036ee91f49501331 (patch)
treea5d4987ab8f23236cc9de3253b850cd948cd5a1f /protocols/JabberG/src/jabber_menu.cpp
parentccf3bef719e71ccafe3a0bd154d0e85d7184a15b (diff)
end of perversion with short ints (fixes #1204)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_menu.cpp')
-rw-r--r--protocols/JabberG/src/jabber_menu.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp
index 8ac57f2677..2a015df7d9 100644
--- a/protocols/JabberG/src/jabber_menu.cpp
+++ b/protocols/JabberG/src/jabber_menu.cpp
@@ -738,7 +738,7 @@ void CJabberProto::MenuInit()
Menu_AddProtoMenuItem(&mi, m_szModuleName);
}
- UpdatePriorityMenu((short)getWord("Priority", 0));
+ UpdatePriorityMenu(getDword("Priority", 0));
//////////////////////////////////////////////////////////////////////////////////////
// finalize status menu
@@ -755,19 +755,19 @@ void CJabberProto::MenuInit()
INT_PTR CJabberProto::OnMenuSetPriority(WPARAM, LPARAM, LPARAM dwDelta)
{
int iDelta = (int)dwDelta;
- int priority = getWord("Priority", 0) + iDelta;
+ int priority = getDword("Priority", 0) + iDelta;
if (priority > 127)
priority = 127;
else if (priority < -128)
priority = -128;
- setWord("Priority", priority);
+ setDword("Priority", priority);
SendPresence(m_iStatus, true);
return 0;
}
-void CJabberProto::UpdatePriorityMenu(short priority)
+void CJabberProto::UpdatePriorityMenu(int priority)
{
- if (!m_hMenuPriorityRoot || m_priorityMenuValSet && (priority == m_priorityMenuVal))
+ if (!m_hMenuPriorityRoot || (m_priorityMenuValSet && priority == m_priorityMenuVal))
return;
TCHAR szName[128];