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/SpellChecker/src/options.cpp | 2 +- plugins/SpellChecker/src/utils.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SpellChecker/src') diff --git a/plugins/SpellChecker/src/options.cpp b/plugins/SpellChecker/src/options.cpp index ba60ccf58d..38621eee1f 100644 --- a/plugins/SpellChecker/src/options.cpp +++ b/plugins/SpellChecker/src/options.cpp @@ -64,7 +64,7 @@ int InitOptionsCallback(WPARAM wParam,LPARAM) odp.flags = ODPF_BOLDGROUPS; Options_AddPage(wParam, &odp); - ZeroMemory(&odp,sizeof(odp)); + memset(&odp, 0, sizeof(odp)); odp.cbSize = sizeof(odp); odp.hInstance = hInst; odp.pszGroup = LPGEN("Message Sessions"); diff --git a/plugins/SpellChecker/src/utils.cpp b/plugins/SpellChecker/src/utils.cpp index ccf4baf5ee..86ea80d46e 100644 --- a/plugins/SpellChecker/src/utils.cpp +++ b/plugins/SpellChecker/src/utils.cpp @@ -884,7 +884,7 @@ int AddContactTextBox(MCONTACT hContact, HWND hwnd, char *name, BOOL srmm, HWND if (dialogs.find(hwnd) == dialogs.end()) { // Fill dialog data Dialog *dlg = (Dialog *)malloc(sizeof(Dialog)); - ZeroMemory(dlg, sizeof(Dialog)); + memset(dlg, 0, sizeof(Dialog)); dlg->re = new RichEdit(hwnd); if (!dlg->re->IsValid()) { @@ -1073,7 +1073,7 @@ void AddMenuForWord(Dialog *dlg, TCHAR *word, CHARRANGE &pos, HMENU hMenu, BOOL dlg->wrong_words->resize(dlg->wrong_words->size() + 1); WrongWordPopupMenuData &data = (*dlg->wrong_words)[dlg->wrong_words->size() - 1]; - ZeroMemory(&data, sizeof(WrongWordPopupMenuData)); + memset(&data, 0, sizeof(WrongWordPopupMenuData)); // Get suggestions data.word = word; @@ -1538,7 +1538,7 @@ LRESULT CALLBACK MenuWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) HDC hdc = GetDC(hwnd); NONCLIENTMETRICS info; - ZeroMemory(&info, sizeof(info)); + memset(&info, 0, sizeof(info)); info.cbSize = sizeof(info); SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(info), &info, 0); HFONT hFont = CreateFontIndirect(&info.lfMenuFont); -- cgit v1.2.3