From 5e99d6ea054f7ad4f1bbb5565803656e2d02b479 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 3 Dec 2016 00:29:49 +0300 Subject: stronger typization --- protocols/IcqOscarJ/src/fam_01service.cpp | 2 +- protocols/IcqOscarJ/src/userinfotab.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'protocols/IcqOscarJ/src') 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); -- cgit v1.2.3