summaryrefslogtreecommitdiff
path: root/protocols/MRA/src
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/MRA/src
parent10bbf1e71ad16fc4e0d274417c01ecaa4e3973f8 (diff)
stronger typization
Diffstat (limited to 'protocols/MRA/src')
-rw-r--r--protocols/MRA/src/Mra_functions.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp
index 3b77a98b25..a63493bfc3 100644
--- a/protocols/MRA/src/Mra_functions.cpp
+++ b/protocols/MRA/src/Mra_functions.cpp
@@ -28,11 +28,12 @@ LRESULT CALLBACK MessageEditSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPA
CMStringA MraGetSelfVersionString()
{
- WORD v[4];
LPSTR lpszSecIM = ServiceExists("SecureIM/IsContactSecured") ? " + SecureIM" : "";
- CMStringA szSelfVersion;
+ MFileVersion v;
Miranda_GetFileVersion(&v);
+
+ CMStringA szSelfVersion;
szSelfVersion.Format("Miranda NG %lu.%lu.%lu.%lu Unicode (MRA v%lu.%lu.%lu.%lu)%s, version: %lu.%lu",
v[0], v[1], v[2], v[3], __FILEVERSION_STRING, lpszSecIM, PROTO_VERSION_MAJOR, PROTO_VERSION_MINOR);
return szSelfVersion;