summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSendImageShack.cpp
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-04-03 02:11:56 +0000
committerRené Schümann <white06tiger@gmail.com>2014-04-03 02:11:56 +0000
commitb87686ce677be209f6923fc8b2f11edcff7f98a0 (patch)
tree38654f368df08bc0ad5efe079bf71343d6c4ccb0 /plugins/SendScreenshotPlus/src/CSendImageShack.cpp
parent6d57c5a6472a17864d85b5923a4c4dfcf3606df3 (diff)
SendSS
* changed LPSTR to char* and LPTSTR to TCHAR* * GetFileName split into A and W functions (Utils.cpp) git-svn-id: http://svn.miranda-ng.org/main/trunk@8834 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSendImageShack.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/CSendImageShack.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendImageShack.cpp b/plugins/SendScreenshotPlus/src/CSendImageShack.cpp
index 2af40a8740..d99c858f4d 100644
--- a/plugins/SendScreenshotPlus/src/CSendImageShack.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendImageShack.cpp
@@ -58,7 +58,7 @@ void CSendImageShack::Send() {
return;
}
if (!m_pszFileName) {
- m_pszFileName = (LPSTR)GetFileName(m_pszFile, DBVT_ASCIIZ);
+ m_pszFileName = GetFileNameA(m_pszFile);
}
if (!m_pszContentType) GetContentType();
@@ -201,7 +201,7 @@ void CSendImageShack::SendThread() {
m_ChatRoom ? svcSendChat(URL) : svcSendMsg(URL);
return;
}else{//check error mess from server
- LPTSTR err = mir_a2t(GetTagContent(m_nlreply->pData, "<error ", "</error>"));
+ TCHAR* err = mir_a2t(GetTagContent(m_nlreply->pData, "<error ", "</error>"));
if (!err || !*err){//fallback to server response mess
mir_freeAndNil(err);
err = mir_a2t(m_nlreply->pData);
@@ -239,7 +239,7 @@ void CSendImageShack::MFDR_Reset() {
void CSendImageShack::GetContentType() {
if (m_pszContentType) mir_freeAndNil(m_pszContentType);
- LPSTR FileExtension = (LPSTR)GetFileExt(m_pszFile, DBVT_ASCIIZ);
+ char* FileExtension = GetFileExtA(m_pszFile);
if ((strcmp(FileExtension, ".jpeg")==0) || (strcmp(FileExtension, ".jpe")==0) || (strcmp(FileExtension ,".jpg")==0))
m_pszContentType="image/jpeg";