summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r--plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp7
-rw-r--r--plugins/SendScreenshotPlus/src/CSendHTTPServer.h14
2 files changed, 11 insertions, 10 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp b/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp
index e0726c82e1..95b41262cf 100644
--- a/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp
@@ -63,11 +63,10 @@ int CSendHTTPServer::Send()
m_pszFileName = GetFileNameA(m_pszFile);
}
mir_freeAndNil(m_fsi_pszSrvPath);
- mir_stradd(m_fsi_pszSrvPath, "/");
- mir_stradd(m_fsi_pszSrvPath, m_pszFileName);
+ mir_tcsadd(m_fsi_pszSrvPath, _T("/"));
+ mir_tcsadd(m_fsi_pszSrvPath, _A2T(m_pszFileName));
- mir_free(m_fsi_pszRealPath);
- m_fsi_pszRealPath = mir_t2a(m_pszFile);
+ replaceStrT(m_fsi_pszRealPath, m_pszFile);
ZeroMemory(&m_fsi, sizeof(m_fsi));
m_fsi.lStructSize = sizeof(STFileShareInfo);
diff --git a/plugins/SendScreenshotPlus/src/CSendHTTPServer.h b/plugins/SendScreenshotPlus/src/CSendHTTPServer.h
index d3070806a9..ba095616d9 100644
--- a/plugins/SendScreenshotPlus/src/CSendHTTPServer.h
+++ b/plugins/SendScreenshotPlus/src/CSendHTTPServer.h
@@ -39,12 +39,14 @@ class CSendHTTPServer : public CSend {
int Send();
protected:
- char* m_pszFileName;
- STFileShareInfo m_fsi;
- char* m_fsi_pszSrvPath;
- char* m_fsi_pszRealPath;
- void SendThread();
- static void SendThreadWrapper(void * Obj);
+ char* m_pszFileName;
+ TCHAR* m_fsi_pszSrvPath;
+ TCHAR* m_fsi_pszRealPath;
+
+ STFileShareInfo m_fsi;
+
+ void SendThread();
+ static void SendThreadWrapper(void * Obj);
typedef std::map<HANDLE, CSendHTTPServer *> CContactMapping;
static CContactMapping _CContactMapping;