diff options
Diffstat (limited to 'plugins/NotesAndReminders')
-rw-r--r-- | plugins/NotesAndReminders/src/hotkeys.cpp | 2 | ||||
-rw-r--r-- | plugins/NotesAndReminders/src/options.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/NotesAndReminders/src/hotkeys.cpp b/plugins/NotesAndReminders/src/hotkeys.cpp index fb5fb678c5..8038037792 100644 --- a/plugins/NotesAndReminders/src/hotkeys.cpp +++ b/plugins/NotesAndReminders/src/hotkeys.cpp @@ -13,7 +13,7 @@ void RegisterKeyBindings() {
HOTKEYDESC desc;
- ZeroMemory(&desc, sizeof(desc));
+ memset(&desc, 0, sizeof(desc));
desc.cbSize = sizeof(desc);
desc.ptszSection = _T(SECTIONNAME);
desc.dwFlags = HKD_TCHAR;
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");
|