summaryrefslogtreecommitdiff
path: root/plugins/Msg_Export
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-07 15:07:18 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-07 15:07:22 +0300
commitb81c076def120b78c7e80e533a8fe1b8248852bd (patch)
treeab5910ada5d03c300bac4af4c4a851dde2e14764 /plugins/Msg_Export
parentec1655ecc7403b2639f4371846880ccb88058142 (diff)
code cleaning
Diffstat (limited to 'plugins/Msg_Export')
-rw-r--r--plugins/Msg_Export/src/utils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp
index 8fa20770cc..fe3c467b6c 100644
--- a/plugins/Msg_Export/src/utils.cpp
+++ b/plugins/Msg_Export/src/utils.cpp
@@ -650,7 +650,8 @@ static bool ExportDBEventInfo(MCONTACT hContact, HANDLE hFile, const wstring &sF
DWORD dwPtr = SetFilePointer(hFile, 0, nullptr, FILE_END);
if (dwPtr == INVALID_SET_FILE_POINTER)
return false;
-
+ }
+ else {
bWriteUTF8Format = g_plugin.bUseUtf8InNewFiles;
if (bWriteUTF8Format)
if (!bWriteToFile(hFile, szUtf8ByteOrderHeader, sizeof(szUtf8ByteOrderHeader) - 1))