From c39c8a5d83b0e2d1d76a6af593f95ac9dad1b5aa Mon Sep 17 00:00:00 2001 From: MikalaiR <nikolay.romanovich@narod.ru> Date: Mon, 8 Feb 2016 11:44:15 +0000 Subject: SkypeWeb: forgotten permission git-svn-id: http://svn.miranda-ng.org/main/trunk@16246 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/requests/asm/files.h | 5 +++-- protocols/SkypeWeb/src/skype_utils.h | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/protocols/SkypeWeb/src/requests/asm/files.h b/protocols/SkypeWeb/src/requests/asm/files.h index 7d13524945..5a679e5e0a 100644 --- a/protocols/SkypeWeb/src/requests/asm/files.h +++ b/protocols/SkypeWeb/src/requests/asm/files.h @@ -11,10 +11,11 @@ public: << CHAR_VALUE("Authorization", CMStringA(::FORMAT, "skype_token %s", li.api.szToken)) << CHAR_VALUE("Content-Type", "text/json"); - JSONNode node, jPermissions, jPermission(JSON_ARRAY); + JSONNode node, jPermissions, jPermission(JSON_ARRAY), jReadPerm(JSON_STRING); jPermissions.set_name("permissions"); jPermission.set_name(szContact); - //jPermission << JSONNode("read"); + jReadPerm = "read"; + jPermission << jReadPerm; jPermissions << jPermission; node << JSONNode("type", "sharing/file") << JSONNode("filename", szFileName) << jPermissions; diff --git a/protocols/SkypeWeb/src/skype_utils.h b/protocols/SkypeWeb/src/skype_utils.h index df74ce5acf..3fa43e5c4d 100644 --- a/protocols/SkypeWeb/src/skype_utils.h +++ b/protocols/SkypeWeb/src/skype_utils.h @@ -91,9 +91,9 @@ public: struct CFileUploadParam : public MZeroedObject { ptrT tszFileName; ptrT tszDesc; - char* atr; - char* fname; - char *uid; + ptrA atr; + ptrA fname; + ptrA uid; size_t size; MCONTACT hContact; -- cgit v1.2.3