diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-01 00:07:01 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-01 00:07:01 +0000 |
commit | b2fad485cd5b41744ef0cc4a02722c021afd926c (patch) | |
tree | aa19403cd699066600e8306be8ad33e4a17fba6f /plugins/NotesAndReminders | |
parent | fc62f1f1e1f8af40a1f7efe0ba3afc358fb66ef3 (diff) |
ZeroMemory -> memset, few bugs fised
git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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");
|