summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/utils.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:07:01 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:07:01 +0000
commitb2fad485cd5b41744ef0cc4a02722c021afd926c (patch)
treeaa19403cd699066600e8306be8ad33e4a17fba6f /plugins/SpellChecker/src/utils.cpp
parentfc62f1f1e1f8af40a1f7efe0ba3afc358fb66ef3 (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/SpellChecker/src/utils.cpp')
-rw-r--r--plugins/SpellChecker/src/utils.cpp6
1 files changed, 3 insertions, 3 deletions
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);