summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-19 16:19:57 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-19 16:19:57 +0000
commitd55f17dea8734cfb458fd8fcbac684d141b181af (patch)
tree4c6d8ea7526b92f89c22b9d299bf01f8278072c8 /plugins/Msg_Export/src/utils.cpp
parent4a67a2dabbdf4aefbe729779f3be84177bbe9274 (diff)
various quirks during MS_DB_TIME_TIMESTAMPTOSTRINGT calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@14265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Msg_Export/src/utils.cpp')
-rwxr-xr-xplugins/Msg_Export/src/utils.cpp24
1 files changed, 1 insertions, 23 deletions
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: