From 2f261839b60692e33d0e160344d0d636d49c90ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 14:23:31 +0000 Subject: less TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/wbOSD/src/options.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/wbOSD/src/options.cpp') diff --git a/plugins/wbOSD/src/options.cpp b/plugins/wbOSD/src/options.cpp index 76af0a3bb1..3749330a0f 100644 --- a/plugins/wbOSD/src/options.cpp +++ b/plugins/wbOSD/src/options.cpp @@ -128,10 +128,10 @@ void loadDBSettings(plgsettings *ps) DBVARIANT dbv; if (!db_get_ts(NULL, THIS_MODULE, "message_format", &dbv)) { - mir_tstrcpy(ps->msgformat, dbv.ptszVal); + mir_wstrcpy(ps->msgformat, dbv.ptszVal); db_free(&dbv); } - else mir_tstrcpy(ps->msgformat, DEFAULT_MESSAGEFORMAT); + else mir_wstrcpy(ps->msgformat, DEFAULT_MESSAGEFORMAT); ps->announce = db_get_dw(NULL, THIS_MODULE, "announce", DEFAULT_ANNOUNCE); @@ -150,11 +150,11 @@ void loadDBSettings(plgsettings *ps) ps->lf.lfPitchAndFamily = db_get_b(NULL, THIS_MODULE, "fntPitchAndFamily", DEFAULT_FNT_PITCHANDFAM); if (!db_get_ts(NULL, THIS_MODULE, "fntFaceName", &dbv)) { - mir_tstrcpy(ps->lf.lfFaceName, dbv.ptszVal); + mir_wstrcpy(ps->lf.lfFaceName, dbv.ptszVal); db_free(&dbv); } else - mir_tstrcpy(ps->lf.lfFaceName, DEFAULT_FNT_FACENAME); + mir_wstrcpy(ps->lf.lfFaceName, DEFAULT_FNT_FACENAME); } void saveDBSettings(plgsettings *ps) @@ -250,7 +250,7 @@ INT_PTR CALLBACK OptDlgProc(HWND hDlg, UINT msg, WPARAM wparam, LPARAM lparam) { wchar_t buf[20]; - mir_sntprintf(buf, L"%d %%", ps->alpha * 100 / 255); + mir_snwprintf(buf, L"%d %%", ps->alpha * 100 / 255); SetDlgItemText(hDlg, IDC_ALPHATXT, buf); } @@ -266,7 +266,7 @@ INT_PTR CALLBACK OptDlgProc(HWND hDlg, UINT msg, WPARAM wparam, LPARAM lparam) ps->alpha = SendDlgItemMessage(hDlg, IDC_SLIDER1, TBM_GETPOS, 0, 0); { wchar_t buf[20]; - mir_sntprintf(buf, L"%d %%", ps->alpha * 100 / 255); + mir_snwprintf(buf, L"%d %%", ps->alpha * 100 / 255); SetDlgItemText(hDlg, IDC_ALPHATXT, buf); } goto xxx; -- cgit v1.2.3