diff options
| author | George Hazan <george.hazan@gmail.com> | 2023-12-25 14:58:56 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2023-12-25 14:58:56 +0300 |
| commit | 0f9e1002ec21154bc476fbfeab0d21f796515823 (patch) | |
| tree | 678f870457343d977afe06b154cfa5323b75e8da /src/core | |
| parent | ee7a91629442ba40e876e19e4cdd7af173e8e840 (diff) | |
DbEvent_GetTextW: useless second parameter removed
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/stdmsg/src/msglog.cpp | 4 | ||||
| -rw-r--r-- | src/core/stduihist/src/history.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp index 55cac4d02f..0c2c8b4d85 100644 --- a/src/core/stdmsg/src/msglog.cpp +++ b/src/core/stdmsg/src/msglog.cpp @@ -364,7 +364,7 @@ public: AppendToBufferWithRTF(buf, szName);
AppendToBufferWithRTF(buf, L" ");
- msg = DbEvent_GetTextW(&dbei, CP_ACP);
+ msg = DbEvent_GetTextW(&dbei);
if (msg) {
AppendToBufferWithRTF(buf, msg);
mir_free(msg);
@@ -394,7 +394,7 @@ public: case EVENTTYPE_MESSAGE:
default:
- msg = DbEvent_GetTextW(&dbei, CP_ACP);
+ msg = DbEvent_GetTextW(&dbei);
SetToStyle((dbei.eventType == EVENTTYPE_MESSAGE) ? ((dbei.flags & DBEF_SENT) ? MSGFONTID_MYMSG : MSGFONTID_YOURMSG) : MSGFONTID_NOTICE, buf);
AppendToBufferWithRTF(buf, msg);
mir_free(msg);
diff --git a/src/core/stduihist/src/history.cpp b/src/core/stduihist/src/history.cpp index c886b4f341..e335167a67 100644 --- a/src/core/stduihist/src/history.cpp +++ b/src/core/stduihist/src/history.cpp @@ -274,7 +274,7 @@ static INT_PTR CALLBACK DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wParam, LP DB::EventInfo dbei(hDbEvent);
if (dbei) {
- ptrW wszDescr(DbEvent_GetTextW(&dbei, CP_ACP));
+ ptrW wszDescr(DbEvent_GetTextW(&dbei));
if (wszDescr)
SetDlgItemText(hwndDlg, IDC_EDIT, wszDescr);
}
@@ -309,7 +309,7 @@ static INT_PTR CALLBACK DlgProcHistory(HWND hwndDlg, UINT msg, WPARAM wParam, LP dbei.cbBlob = oldBlobSize;
db_event_get(hDbEvent, &dbei);
- ptrW wszDescr(DbEvent_GetTextW(&dbei, CP_ACP));
+ ptrW wszDescr(DbEvent_GetTextW(&dbei));
if (wszDescr) {
CharUpperW(wszDescr);
if (wcsstr(wszDescr, (const wchar_t *)lParam) != nullptr) {
|
