diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-08 11:44:15 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-08 11:44:15 +0000 |
commit | c39c8a5d83b0e2d1d76a6af593f95ac9dad1b5aa (patch) | |
tree | c94e69db38ef1a742a8648d8c400e6c2e07075b7 /protocols/SkypeWeb/src | |
parent | 0e015080019d3a9d6f75efde41a7c654491f5db2 (diff) |
SkypeWeb: forgotten permission
git-svn-id: http://svn.miranda-ng.org/main/trunk@16246 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r-- | protocols/SkypeWeb/src/requests/asm/files.h | 5 | ||||
-rw-r--r-- | 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;
|