diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-07 15:07:18 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-07 15:07:22 +0300 |
commit | b81c076def120b78c7e80e533a8fe1b8248852bd (patch) | |
tree | ab5910ada5d03c300bac4af4c4a851dde2e14764 | |
parent | ec1655ecc7403b2639f4371846880ccb88058142 (diff) |
code cleaning
-rw-r--r-- | plugins/Msg_Export/src/utils.cpp | 3 | ||||
-rw-r--r-- | plugins/Popup/src/popup_wnd2.cpp | 6 |
2 files changed, 5 insertions, 4 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))
diff --git a/plugins/Popup/src/popup_wnd2.cpp b/plugins/Popup/src/popup_wnd2.cpp index f711ca041d..a4c1b103bf 100644 --- a/plugins/Popup/src/popup_wnd2.cpp +++ b/plugins/Popup/src/popup_wnd2.cpp @@ -44,7 +44,7 @@ void WindowThread(void *arg); LRESULT CALLBACK MenuHostWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
-bool LoadPopupWnd2()
+bool LoadPopupWnd2()
{
bool res = true;
@@ -99,7 +99,7 @@ bool LoadPopupWnd2() return res && ghwndMenuHost;
}
-void UnloadPopupWnd2()
+void UnloadPopupWnd2()
{
DestroyWindow(ghwndMenuHost);
}
@@ -1219,7 +1219,7 @@ LRESULT CALLBACK PopupWnd2::WindowProc(HWND hwnd, UINT message, WPARAM wParam, L return DefWindowProc(hwnd, message, wParam, lParam);
}
-void WindowThread(void *arg)
+void WindowThread(void *arg)
{
Thread_SetName("POPUP: WindowThread");
|