From b2fad485cd5b41744ef0cc4a02722c021afd926c Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 1 Dec 2014 00:07:01 +0000 Subject: ZeroMemory -> memset, few bugs fised git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NotesAndReminders/src/options.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/NotesAndReminders/src/options.cpp') diff --git a/plugins/NotesAndReminders/src/options.cpp b/plugins/NotesAndReminders/src/options.cpp index cb1c01a988..d9a3c9798e 100644 --- a/plugins/NotesAndReminders/src/options.cpp +++ b/plugins/NotesAndReminders/src/options.cpp @@ -184,8 +184,8 @@ static BYTE MsgDlgGetFontDefaultCharset(const TCHAR* szFont) static void InitFonts() { - ZeroMemory(&lfBody,sizeof(LOGFONT)); - ZeroMemory(&lfCaption,sizeof(LOGFONT)); + memset(&lfBody, 0, sizeof(LOGFONT)); + memset(&lfCaption, 0, sizeof(LOGFONT)); LoadNRFont(NR_FONTID_CAPTION, &lfCaption, (COLORREF*)&CaptionFontColor); LoadNRFont(NR_FONTID_BODY, &lfBody, (COLORREF*)&BodyFontColor); @@ -557,10 +557,10 @@ void InitSettings(void) g_RemindSMS = NULL; else { - g_RemindSMS = (char*)malloc(Sz1+1); - ZeroMemory(g_RemindSMS,Sz1+1); - memcpy(g_RemindSMS,P,Sz1); - FreeSettingBlob(Sz1,P); + g_RemindSMS = (char*)malloc(Sz1 + 1); + memcpy(g_RemindSMS, P, Sz1); + g_RemindSMS[Sz1] = 0; + FreeSettingBlob(Sz1, P); } g_lpszAltBrowser = db_get_sa(0,MODULENAME,"AltBrowser"); -- cgit v1.2.3