void SendQueue::handleError(TWindowData *dat, const int iEntry) const { if(dat) { TCHAR szErrorMsg[500]; dat->iCurrentQueueError = iEntry; mir_sntprintf(szErrorMsg, 500, _T("%s"), m_jobs[iEntry].szErrorMsg); logError(dat, iEntry, szErrorMsg); recallFailed(dat, iEntry); showErrorControls(dat, TRUE); ::HandleIconFeedback(dat, PluginConfig.g_iconErr); } }
void SendQueue::handleError(TWindowData *dat, const int iEntry) const { if (!dat) return; TCHAR szErrorMsg[500]; dat->iCurrentQueueError = iEntry; _tcsncpy_s(szErrorMsg, m_jobs[iEntry].szErrorMsg, _TRUNCATE); logError(dat, iEntry, szErrorMsg); recallFailed(dat, iEntry); showErrorControls(dat, TRUE); ::HandleIconFeedback(dat, PluginConfig.g_iconErr); }