yang123vc / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

Crashsender SMTP sendMsg - Errorhandling #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
File: smtpclient.cpp
Line: 784

Instand of testing 
(pszResponse==NULL) 
with pszResponse is not used till then in this funktion i suggest to test:
(res == SOCKET_ERROR)

with errorhandling:
{
CString lasterr;
lasterr.FormatMessageW(WSAGetLastError());
m_scn->SetProgress(lasterr, 0);         
char buffer[32]; // bzw. TCHAR buffer[32]; 
sprintf(buffer, "%d", res);
CString err = _T("Send error: ") + (CString)buffer;
m_scn->SetProgress(err, 0);    
return res; // Failed
}

Original issue reported on code.google.com by d.the...@sdz.de on 26 Apr 2013 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 26 Apr 2013 at 1:02

GoogleCodeExporter commented 9 years ago
Fixed this in trunk.

Original comment by zexspect...@gmail.com on 15 Jun 2013 at 8:50

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1626.

Original comment by zexspect...@gmail.com on 15 Jun 2013 at 8:51