summaryrefslogtreecommitdiff
path: root/plugins/NotesAndReminders
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 20:07:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 20:07:58 +0000
commitc09aa99a7e9915c503064d6eb5e9dd1bdd2a673f (patch)
tree9b1b1447755b03dc6fcb327b027789b415e3119f /plugins/NotesAndReminders
parentbabf7873a3fe373d60ef22b1b671d98e014d8819 (diff)
replace _tcscpy to mir_tstrcpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NotesAndReminders')
-rw-r--r--plugins/NotesAndReminders/src/notes.cpp6
-rw-r--r--plugins/NotesAndReminders/src/options.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NotesAndReminders/src/notes.cpp b/plugins/NotesAndReminders/src/notes.cpp
index 39c218361d..9a250b56df 100644
--- a/plugins/NotesAndReminders/src/notes.cpp
+++ b/plugins/NotesAndReminders/src/notes.cpp
@@ -185,7 +185,7 @@ static void InitStickyNoteLogFont(STICKYNOTEFONT *pCustomFont, LOGFONT *lf)
lf->lfHeight = pCustomFont->size;
}
- _tcscpy(lf->lfFaceName, pCustomFont->szFace);
+ mir_tstrcpy(lf->lfFaceName, pCustomFont->szFace);
lf->lfWidth = lf->lfEscapement = lf->lfOrientation = 0;
lf->lfWeight = pCustomFont->style & DBFONTF_BOLD ? FW_BOLD : FW_NORMAL;
@@ -518,7 +518,7 @@ void LoadNotes(BOOL bIsStartup)
pCustomFont->size = (char)fsize;
pCustomFont->style = (BYTE)fstyle;
pCustomFont->charset = (BYTE)fcharset;
- _tcscpy(pCustomFont->szFace, TVal2);
+ mir_tstrcpy(pCustomFont->szFace, TVal2);
pCustomFont->hFont = NULL;
if ( !CreateStickyNoteFont(pCustomFont, NULL) )
@@ -1559,7 +1559,7 @@ INT_PTR CALLBACK StickyNoteWndProc(HWND hdlg,UINT message,WPARAM wParam,LPARAM l
SN->pCustomFont->size = (char)lf.lfHeight;
SN->pCustomFont->style = (lf.lfWeight >= FW_BOLD ? DBFONTF_BOLD : 0) | (lf.lfItalic ? DBFONTF_ITALIC : 0) | (lf.lfUnderline ? DBFONTF_UNDERLINE : 0) | (lf.lfStrikeOut ? DBFONTF_STRIKEOUT : 0);
SN->pCustomFont->charset = lf.lfCharSet;
- _tcscpy(SN->pCustomFont->szFace, lf.lfFaceName);
+ mir_tstrcpy(SN->pCustomFont->szFace, lf.lfFaceName);
if ( !CreateStickyNoteFont(SN->pCustomFont, &lf) )
{
diff --git a/plugins/NotesAndReminders/src/options.cpp b/plugins/NotesAndReminders/src/options.cpp
index a2f366e6d8..20ac2bab12 100644
--- a/plugins/NotesAndReminders/src/options.cpp
+++ b/plugins/NotesAndReminders/src/options.cpp
@@ -166,7 +166,7 @@ static BYTE MsgDlgGetFontDefaultCharset(const TCHAR* szFont)
LOGFONT lf = {0};
int found = 0;
- _tcscpy(lf.lfFaceName, szFont);
+ mir_tstrcpy(lf.lfFaceName, szFont);
lf.lfCharSet = MsgDlgGetCPDefaultCharset();
// check if the font supports specified charset