From 156545d23f92b32673e641650a7cc493f3eecc16 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 29 Mar 2015 15:31:25 +0000 Subject: - Fixed compatibility of SendSS and HTTPServer git-svn-id: http://svn.miranda-ng.org/main/trunk@12540 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp | 8 ++++---- plugins/SendScreenshotPlus/src/CSendHTTPServer.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/SendScreenshotPlus') 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; -- cgit v1.2.3