diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-10 13:25:50 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-10 13:25:50 +0300 |
commit | 9d98fd2380b5e8bc66ab599e896cee5ad2ec7d58 (patch) | |
tree | d5c3c47f413a732164d696b989834c77ff15ef74 /protocols/SkypeWeb/src/skype_utils.h | |
parent | ac94ef8ab88f3d3ead6022d04fc64713ed77028c (diff) |
fixes #4829 (SkypeWeb: не работает отсылка нескольких файлов)
Diffstat (limited to 'protocols/SkypeWeb/src/skype_utils.h')
-rw-r--r-- | protocols/SkypeWeb/src/skype_utils.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/protocols/SkypeWeb/src/skype_utils.h b/protocols/SkypeWeb/src/skype_utils.h index 8c9d73b1b0..feef9b8883 100644 --- a/protocols/SkypeWeb/src/skype_utils.h +++ b/protocols/SkypeWeb/src/skype_utils.h @@ -49,7 +49,7 @@ public: struct CFileUploadParam : public MZeroedObject
{
- ptrW tszFileName;
+ OBJLIST<wchar_t> arFileName;
ptrW tszDesc;
ptrA atr;
ptrA fname;
@@ -59,13 +59,14 @@ struct CFileUploadParam : public MZeroedObject MCONTACT hContact;
bool isPicture;
- __forceinline CFileUploadParam(MCONTACT _hContact, const wchar_t* _desc, wchar_t** _files) :
+ CFileUploadParam(MCONTACT _hContact, wchar_t **_files, const wchar_t* _desc) :
+ arFileName(1),
hContact(_hContact),
- tszDesc(mir_wstrdup(_desc)),
- tszFileName(mir_wstrdup(_files[0]))
- {};
-
- __forceinline bool IsAccess() { return ::_waccess(tszFileName, 0) == 0; }
+ tszDesc(mir_wstrdup(_desc))
+ {
+ for (auto p = _files; *p != 0; p++)
+ arFileName.insert(newStrW(*p));
+ }
};
class JsonReply
@@ -81,4 +82,4 @@ public: __forceinline int error() const { return m_errorCode; }
};
-#endif //_UTILS_H_
\ No newline at end of file +#endif //_UTILS_H_
|