From b81c076def120b78c7e80e533a8fe1b8248852bd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Mar 2024 15:07:18 +0300 Subject: code cleaning --- plugins/Msg_Export/src/utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/Msg_Export') 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)) -- cgit v1.2.3