diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-03 13:02:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-03 13:02:30 +0000 |
commit | 3c5f60a5dc438523934fa598bfeb537056ad2470 (patch) | |
tree | 357df4f85dfd31cb3e4433f42c705dddc01bf3fb /protocols/IcqOscarJ/fam_01service.cpp | |
parent | d06e75fd7b0b11aa92fa075fdf30cec05d7a01f3 (diff) |
m_version.h => MS_SYSTEM_GETVERSION[TEXT]
git-svn-id: http://svn.miranda-ng.org/main/trunk@1337 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/fam_01service.cpp')
-rwxr-xr-x | protocols/IcqOscarJ/fam_01service.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/protocols/IcqOscarJ/fam_01service.cpp b/protocols/IcqOscarJ/fam_01service.cpp index 58860481ca..3b98079716 100755 --- a/protocols/IcqOscarJ/fam_01service.cpp +++ b/protocols/IcqOscarJ/fam_01service.cpp @@ -761,11 +761,14 @@ void CIcqProto::setUserInfo() packDWord(&packet, 0x4D697261); // Miranda Signature
packDWord(&packet, 0x6E64614E);
- WORD ver[4] = { MIRANDA_VERSION_FILEVERSION };
- packWord(&packet, ver[0]);
- packWord(&packet, ver[1]);
- packWord(&packet, ver[2]);
- packWord(&packet, ver[3]);
+ int v[4];
+ char mirver[100];
+ CallService(MS_SYSTEM_GETVERSIONTEXT, SIZEOF(mirver), LPARAM(mirver));
+ sscanf(mirver, "%d.%d.%d.%d", &v[0], &v[1], &v[2], &v[3]);
+ packWord(&packet, v[0]);
+ packWord(&packet, v[1]);
+ packWord(&packet, v[2]);
+ packWord(&packet, v[3]);
//MIM/PackName
if ( bHasPackName ) {
|