diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-21 16:50:10 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-05-21 16:50:10 +0000 |
commit | 9147414780abfb4e406bf062561a4b62c76e3c86 (patch) | |
tree | 93f8280ad910396067022db4eecabeb88e24ced9 /protocols/SkypeWeb/src/requests/capabilities.h | |
parent | 48266e479d1fcf5153b29c612866845990fccad8 (diff) |
SkypeWeb: Contact computername in MirVer. Fix duplicate bitness in MirVer.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13735 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/capabilities.h')
-rw-r--r-- | protocols/SkypeWeb/src/requests/capabilities.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/protocols/SkypeWeb/src/requests/capabilities.h b/protocols/SkypeWeb/src/requests/capabilities.h index eb972cafa5..fb7c668c20 100644 --- a/protocols/SkypeWeb/src/requests/capabilities.h +++ b/protocols/SkypeWeb/src/requests/capabilities.h @@ -29,18 +29,11 @@ public: << CHAR_VALUE("Content-Type", "application/json; charset=UTF-8")
<< FORMAT_VALUE("RegistrationToken", "registrationToken=%s", regToken);
- short bitness = 32;
char compName[MAX_COMPUTERNAME_LENGTH + 1];
DWORD size = SIZEOF(compName);
GetComputerNameA(compName, &size);
-#ifdef _WIN64
- bitness = 64;
-#endif
-
- CMStringA verString(::FORMAT, "%s x%d", g_szMirVer, bitness);
-
JSONNODE *node = json_new(5);
JSONNODE *privateInfo = json_new(5);
JSONNODE *publicInfo = json_new(5);
@@ -58,7 +51,7 @@ public: json_push_back(publicInfo, json_new_i("typ", 125));
json_push_back(publicInfo, json_new_a("skypeNameVersion", "Miranda NG Skype"));
json_push_back(publicInfo, json_new_a("nodeInfo", "xx"));
- json_push_back(publicInfo, json_new_a("version", verString.GetBuffer()));
+ json_push_back(publicInfo, json_new_a("version", g_szMirVer));
json_push_back(node, privateInfo);
json_push_back(node, publicInfo);
|