diff options
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r-- | plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp | 8 | ||||
-rw-r--r-- | plugins/SendScreenshotPlus/src/CSendHTTPServer.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp b/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp index 8c8ed7d482..8752a9604f 100644 --- a/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp +++ b/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp @@ -53,7 +53,7 @@ CSendHTTPServer::~CSendHTTPServer(){ int CSendHTTPServer::Send() { if(!m_hContact) return 1; - if (CallService(MS_HTTP_ACCEPT_CONNECTIONS, (WPARAM)true, 0) != 0) { + if (CallService(MS_HTTP_ACCEPT_CONNECTIONS, TRUE, 0) != 0) { Error(LPGENT("Could not start the HTTP Server plugin.")); Exit(ACKRESULT_FAILED); return !m_bAsync; @@ -63,8 +63,8 @@ int CSendHTTPServer::Send() m_pszFileName = GetFileNameA(m_pszFile); } mir_freeAndNil(m_fsi_pszSrvPath); - mir_tstradd(m_fsi_pszSrvPath, _T("/")); - mir_tstradd(m_fsi_pszSrvPath, _A2T(m_pszFileName)); + mir_stradd(m_fsi_pszSrvPath, "/"); + mir_stradd(m_fsi_pszSrvPath, m_pszFileName); replaceStrT(m_fsi_pszRealPath, m_pszFile); @@ -72,7 +72,7 @@ int CSendHTTPServer::Send() m_fsi.lStructSize = sizeof(STFileShareInfo); m_fsi.pszSrvPath = m_fsi_pszSrvPath; m_fsi.nMaxDownloads = -1; // -1 = infinite - m_fsi.pszRealPath = m_fsi_pszRealPath; + m_fsi.pszRealPath = _T2A(m_fsi_pszRealPath); //m_fsi.dwOptions = NULL; //OPT_SEND_LINK only work on single chat; //start Send thread diff --git a/plugins/SendScreenshotPlus/src/CSendHTTPServer.h b/plugins/SendScreenshotPlus/src/CSendHTTPServer.h index 0614ab90ea..c5f7b2bfe2 100644 --- a/plugins/SendScreenshotPlus/src/CSendHTTPServer.h +++ b/plugins/SendScreenshotPlus/src/CSendHTTPServer.h @@ -40,7 +40,7 @@ class CSendHTTPServer : public CSend { protected: char* m_pszFileName; - TCHAR* m_fsi_pszSrvPath; + char* m_fsi_pszSrvPath; TCHAR* m_fsi_pszRealPath; STFileShareInfo m_fsi; |