From cb9b514f36f4f939aa9cdbcd7d67bb2d64223569 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Wed, 23 Aug 2017 00:20:27 +0200 Subject: [PATCH] code cleanup --- src/Styles.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Styles.c b/src/Styles.c index 9cc50c028..c6d68aa3e 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -2761,7 +2761,7 @@ void Style_Save() IniSectionSetString(pIniSection,tch,wch); } SaveIniSection(L"Custom Colors",pIniSection); - ZeroMemory(pIniSection, (int)LocalSize(pIniSection)); + ZeroMemory(pIniSection,LocalSize(pIniSection)); // auto select IniSectionSetInt(pIniSection,L"Use2ndDefaultStyle",bUse2ndDefaultStyle); @@ -2777,7 +2777,7 @@ void Style_Save() IniSectionSetInt(pIniSection,L"SelectDlgSizeY",cyStyleSelectDlg); SaveIniSection(L"Styles",pIniSection); - ZeroMemory(pIniSection, (int)LocalSize(pIniSection)); + ZeroMemory(pIniSection,LocalSize(pIniSection)); if (!fStylesModified) { LocalFree(pIniSection); @@ -2794,7 +2794,7 @@ void Style_Save() } SaveIniSection(pLexArray[iLexer]->pszName,pIniSection); - ZeroMemory(pIniSection, (int)LocalSize(pIniSection)); + ZeroMemory(pIniSection,LocalSize(pIniSection)); } LocalFree(pIniSection); } @@ -2888,7 +2888,7 @@ BOOL Style_Export(HWND hwnd) } if (!WritePrivateProfileSection(pLexArray[iLexer]->pszName,pIniSection,szFile)) dwError = GetLastError(); - ZeroMemory(pIniSection, (int)LocalSize(pIniSection)); + ZeroMemory(pIniSection,LocalSize(pIniSection)); } LocalFree(pIniSection);