diff options
Diffstat (limited to 'protocols/SkypeWeb')
-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;
|