diff options
| author | George Hazan <ghazan@miranda.im> | 2022-11-15 12:49:25 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2022-11-15 12:49:25 +0300 |
| commit | f708f2a55a467092b70a537c2b97c9210440a420 (patch) | |
| tree | bec7d1200a546bfdac30ec64278673217d6e6365 /protocols/WhatsApp/src/utils.cpp | |
| parent | 85bcf4d780a31fd88508ae42ba825394a0911a5d (diff) | |
fixes #3245 (WhatsApp: crash on login) + code cleaning
Diffstat (limited to 'protocols/WhatsApp/src/utils.cpp')
| -rw-r--r-- | protocols/WhatsApp/src/utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/utils.cpp b/protocols/WhatsApp/src/utils.cpp index 2fde05e080..f4cc2e0e55 100644 --- a/protocols/WhatsApp/src/utils.cpp +++ b/protocols/WhatsApp/src/utils.cpp @@ -448,7 +448,7 @@ void WhatsAppProto::GetMessageContent( szMediaType[0] = toupper(szMediaType[0]); MBinBuffer buf = DownloadEncryptedFile(directPath2url(szDirectPath), pMediaKey, szMediaType); - if (buf.data()) { + if (!buf.isEmpty()) { CMStringW pwszFileName(GetTmpFileName(szType, url)); bin2file(buf, pwszFileName); |
