summaryrefslogtreecommitdiff
path: root/plugins/New_GPG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-03 14:05:33 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-03 14:05:33 +0300
commit2f880bda3aa2d8817ce43481df9d99b12ed82a58 (patch)
treed92de519c6bc13e0ce3d8e42ba64deeb46d474dc /plugins/New_GPG
parent66b61f42871089f3962920924f9030cd6dff2ad8 (diff)
code cleaning: old unions replaced with MAllStrings & MAllStringsArray
Diffstat (limited to 'plugins/New_GPG')
-rwxr-xr-xplugins/New_GPG/src/utilities.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp
index 27eef26991..a38429091d 100755
--- a/plugins/New_GPG/src/utilities.cpp
+++ b/plugins/New_GPG/src/utilities.cpp
@@ -273,14 +273,14 @@ int onProtoAck(WPARAM, LPARAM l)
if ((f->flags & PFTS_SENDING) != PFTS_SENDING) {
wchar_t *filename = nullptr;
if (f->flags & PFTS_UNICODE) {
- if (f->tszCurrentFile && f->tszCurrentFile[0])
- filename = mir_wstrdup(f->tszCurrentFile);
+ if (f->szCurrentFile.w && f->szCurrentFile.w[0])
+ filename = mir_wstrdup(f->szCurrentFile.w);
if (!filename)
return 0;
}
else {
- if (f->szCurrentFile && f->szCurrentFile[0])
- filename = mir_utf8decodeW(f->szCurrentFile);
+ if (f->szCurrentFile.a && f->szCurrentFile.a[0])
+ filename = mir_utf8decodeW(f->szCurrentFile.a);
if (!filename)
return 0;
}
@@ -295,7 +295,7 @@ int onProtoAck(WPARAM, LPARAM l)
if (!globals.bDecryptFiles)
return 0;
HistoryLog(ack->hContact, db_event("Received encrypted file, trying to decrypt", 0, 0, 0));
- if (!boost::filesystem::exists(f->tszCurrentFile))
+ if (!boost::filesystem::exists(f->szCurrentFile.w))
return 0;
string out;
DWORD code;