| 39 | } |
| 40 | |
| 41 | bool CBlockingSocketException::GetErrorMessage(LPTSTR lpstrError, UINT nMaxError, PUINT /*pnHelpContext = NULL*/) |
| 42 | { |
| 43 | if( m_nError == 0 ) |
| 44 | { |
| 45 | if( m_strMessage.size()+7>nMaxError ) |
| 46 | return false; |
| 47 | tsprintf(lpstrError, nMaxError, _T("%s error"), m_strMessage.c_str()); |
| 48 | } |
| 49 | else |
| 50 | { |
| 51 | if( m_strMessage.size()+18>nMaxError ) |
| 52 | return false; |
| 53 | tsprintf(lpstrError, nMaxError, _T("%s error 0x%08x"), m_strMessage.c_str(), m_nError); |
| 54 | } |
| 55 | return true; |
| 56 | } |
| 57 | |
| 58 | tstring CBlockingSocketException::GetErrorMessage(PUINT /*pnHelpContext = NULL*/) |
| 59 | { |
no test coverage detected