summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/core.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-25 23:47:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-25 23:47:56 +0300
commitea88e2c53d3ac0840955eb703213ca1430bb4361 (patch)
tree658c2290a12888922c9729a623d5d34e750bd626 /protocols/Gadu-Gadu/src/core.cpp
parent45bf5f51cc788cb8f19e1b8fcd5b8818dc7a2e00 (diff)
PROTORECVFILE now uses const char/wchar_t pointers. also fixes #1864 completely
Diffstat (limited to 'protocols/Gadu-Gadu/src/core.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/core.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp
index a65719ad25..9176da06e7 100644
--- a/protocols/Gadu-Gadu/src/core.cpp
+++ b/protocols/Gadu-Gadu/src/core.cpp
@@ -1038,18 +1038,16 @@ retry:
debugLogA("mainthread() (%x): Client: %d, File ack filename \"%s\" size %d.", this, dcc7->peer_uin,
dcc7->filename, dcc7->size);
- wchar_t* filenameT = mir_a2u((char*)dcc7->filename);
+ const char *fileName = (const char*)dcc7->filename;
PROTORECVFILE pre = { 0 };
- pre.dwFlags = PRFF_UNICODE;
pre.fileCount = 1;
pre.timestamp = time(0);
- pre.descr.w = filenameT;
- pre.files.w = &filenameT;
+ pre.descr.a = fileName;
+ pre.files.a = &fileName;
pre.lParam = (LPARAM)dcc7;
ProtoChainRecvFile((UINT_PTR)dcc7->contact, &pre);
- mir_free(filenameT);
e->event.dcc7_new = nullptr;
}
break;