summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-12-03 00:29:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-12-03 00:29:49 +0300
commit5e99d6ea054f7ad4f1bbb5565803656e2d02b479 (patch)
tree3a1b8aa0c75f94608f4c9c5ae14d65a7bd294058 /protocols/IcqOscarJ
parent10bbf1e71ad16fc4e0d274417c01ecaa4e3973f8 (diff)
stronger typization
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r--protocols/IcqOscarJ/src/fam_01service.cpp2
-rw-r--r--protocols/IcqOscarJ/src/userinfotab.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/fam_01service.cpp b/protocols/IcqOscarJ/src/fam_01service.cpp
index 161d9b10af..a416b1b97a 100644
--- a/protocols/IcqOscarJ/src/fam_01service.cpp
+++ b/protocols/IcqOscarJ/src/fam_01service.cpp
@@ -675,7 +675,7 @@ void CIcqProto::setUserInfo()
packDWord(&packet, 0x4D697261); // Miranda Signature
packDWord(&packet, 0x6E64614E);
- WORD v[4];
+ MFileVersion v;
Miranda_GetFileVersion(&v);
packWord(&packet, v[0]);
packWord(&packet, v[1]);
diff --git a/protocols/IcqOscarJ/src/userinfotab.cpp b/protocols/IcqOscarJ/src/userinfotab.cpp
index 2f35f7e007..af52cbaef5 100644
--- a/protocols/IcqOscarJ/src/userinfotab.cpp
+++ b/protocols/IcqOscarJ/src/userinfotab.cpp
@@ -232,9 +232,10 @@ static INT_PTR CALLBACK IcqDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
SetValue(ppro, hwndDlg, IDC_STATUS, hContact, szProto, "Status", SVS_STATUSID);
}
else {
- char str[MAX_PATH];
- WORD v[4];
+ MFileVersion v;
Miranda_GetFileVersion(&v);
+
+ char str[MAX_PATH];
mir_snprintf(str, "Miranda NG %d.%d.%d.%d (ICQ %s)", v[0], v[1], v[2], v[3], __VERSION_STRING_DOTS);
SetValue(ppro, hwndDlg, IDC_PORT, hContact, (char*)DBVT_WORD, (char*)ppro->wListenPort, SVS_ZEROISUNSPEC);