code cleanup

This commit is contained in:
Rainer Kottenhoff 2017-08-23 00:20:27 +02:00
parent 3d0359ae6b
commit cb9b514f36

View File

@ -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);