mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
code cleanup
This commit is contained in:
parent
3d0359ae6b
commit
cb9b514f36
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user