diff options
Diffstat (limited to 'plugins/SendScreenshotPlus/src/Main.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/Main.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/plugins/SendScreenshotPlus/src/Main.cpp b/plugins/SendScreenshotPlus/src/Main.cpp index 13135cebe8..e2cfc37f9a 100644 --- a/plugins/SendScreenshotPlus/src/Main.cpp +++ b/plugins/SendScreenshotPlus/src/Main.cpp @@ -277,19 +277,17 @@ INT_PTR service_EditBitmap(WPARAM wParam, LPARAM lParam) { INT_PTR service_Send2ImageShack(WPARAM wParam, LPARAM lParam) { char* result = NULL; CSendImageShack* cSend = new CSendImageShack(NULL, lParam, false); - cSend->m_pszFile = mir_a2t((char*)wParam); - cSend->m_bDeleteAfterSend = FALSE; + cSend->m_bDeleteAfterSend = false; + cSend->SetFile((char*)wParam); if (lParam != NULL) { - cSend->Send(); - return 0; + if(cSend->Send()) delete cSend; + return NULL; } - cSend->SendSync(TRUE); - cSend->Send(); + cSend->SendSilent(); if (cSend->GetURL()) { - result = mir_strdup(cSend->GetURL()); - } - else { - result = cSend->GetError(); + result=mir_strdup(cSend->GetURL()); + }else{ + result=cSend->GetError(); } delete cSend; return (INT_PTR)result; |