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/Sessions/Src/Main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Sessions/Src/Main.cpp') diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index 92cf5d8b5b..3e3dfde266 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -322,7 +322,7 @@ INT_PTR CALLBACK LoadSessionDlgProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM l db_set_b(session_list_recovered[i], MODNAME, "wasInLastSession", 0); i++; } - ZeroMemory(session_list_recovered, sizeof(session_list_recovered)); + memset(session_list_recovered, 0, sizeof(session_list_recovered)); g_bIncompletedSave = 0; EnableWindow(GetDlgItem(hdlg, IDC_SESSDEL), FALSE); @@ -418,7 +418,7 @@ INT_PTR CloseCurrentSession(WPARAM wparam, LPARAM lparam) } else SendMessage(mwd.hwndWindow, WM_CLOSE, 0, 0); } - ZeroMemory(session_list, sizeof(session_list)); + memset(session_list, 0, sizeof(session_list)); return 0; } @@ -820,7 +820,7 @@ static int PluginInit(WPARAM wparam, LPARAM lparam) cl.position = 10100000; Menu_AddMainMenuItem(&cl); - ZeroMemory(&cl, sizeof(cl)); + memset(&cl, 0, sizeof(cl)); cl.cbSize = sizeof(cl); cl.flags = CMIM_ICON; cl.icolibItem = iconList[4].hIcolib; @@ -875,7 +875,7 @@ extern "C" __declspec(dllexport) int Load(void) if (g_bIncompletedSave) { int i = 0; - ZeroMemory(session_list_recovered, sizeof(session_list_recovered)); + memset(session_list_recovered, 0, sizeof(session_list_recovered)); for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) if (db_get_b(hContact, MODNAME, "wasInLastSession", 0)) -- cgit v1.2.3