From d55f17dea8734cfb458fd8fcbac684d141b181af Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 16:19:57 +0000 Subject: various quirks during MS_DB_TIME_TIMESTAMPTOSTRINGT calls git-svn-id: http://svn.miranda-ng.org/main/trunk@14265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Msg_Export/src/utils.cpp | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'plugins/Msg_Export') diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index acee271fea..755193bddd 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -1135,7 +1135,7 @@ void ExportDBEventInfo(MCONTACT hContact, DBEVENTINFO &dbei) dbei.flags & DBEF_SENT ? sLocalUser.c_str() : sRemoteUser.c_str()); DBTIMETOSTRINGT dbtts; - dbtts.cbDest = sizeof(szTemp) - nIndent - 2; + dbtts.cbDest = SIZEOF(szTemp) - nIndent - 2; dbtts.szDest = &szTemp[nIndent]; dbtts.szFormat = (TCHAR*)sTimeFormat.c_str(); @@ -1168,28 +1168,6 @@ void ExportDBEventInfo(MCONTACT hContact, DBEVENTINFO &dbei) } mir_free(msg); break; - /* - const char *pszData = (const char*)dbei.pBlob; - bool bConvertedToUtf8 = false; - if (bWriteUTF8Format )// Write UTF-8 format in file ? - { - int nAnsiLen = mir_strlen((char *) dbei.pBlob)+1; - if (nAnsiLen < (int)dbei.cbBlob ) - { - // Message is also encoded in unicode UTF-16/UCS-2, little endian. - if (WideCharToMultiByte( CP_UTF8, 0, (wchar_t*)&dbei.pBlob[ nAnsiLen ], nAnsiLen, szTemp, sizeof(szTemp), 0, 0)) - { - pszData = szTemp; - bConvertedToUtf8 = true; - } - } - // We need to write in UTF8 format so we have to convert ansi string to UTF8 - } - if ( !bWriteIndentedToFile( hFile, nIndent, pszData, bWriteUTF8Format)) - { - DisplayErrorDialog( _T("Failed to write message to the file :\n"), sFilePath, &dbei); - } - break;*/ } case EVENTTYPE_URL: case EVENTTYPE_FILE: -- cgit v1.2.3