diff options
Diffstat (limited to 'plugins/CSList/src/cslist.cpp')
-rw-r--r-- | plugins/CSList/src/cslist.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/plugins/CSList/src/cslist.cpp b/plugins/CSList/src/cslist.cpp index ee3d6ccad1..bf2f093749 100644 --- a/plugins/CSList/src/cslist.cpp +++ b/plugins/CSList/src/cslist.cpp @@ -45,7 +45,7 @@ PLUGININFOEX pluginInfoEx = __AUTHORWEB,
UNICODE_AWARE,
// {C8CC7414-6507-4AF6-925A-83C1D2F7BE8C}
- { 0xc8cc7414, 0x6507, 0x4af6, { 0x92, 0x5a, 0x83, 0xc1, 0xd2, 0xf7, 0xbe, 0x8c } }
+ {0xc8cc7414, 0x6507, 0x4af6, {0x92, 0x5a, 0x83, 0xc1, 0xd2, 0xf7, 0xbe, 0x8c}}
};
// ====[ MAIN ]===============================================================
@@ -140,7 +140,7 @@ extern "C" __declspec(dllexport) int Load() for (int i=0; i < SIZEOF(forms); i++) {
char szSettingName[64];
- mir_snprintf(szSettingName, SIZEOF(szSettingName), "%s_%s", __INTERNAL_NAME, forms[i].pszIconIcoLib);
+ mir_snprintf(szSettingName, SIZEOF(szSettingName), "%s_%s", MODNAME, forms[i].pszIconIcoLib);
sid.pszName = szSettingName;
sid.ptszDescription = forms[i].ptszDescr;
@@ -312,6 +312,15 @@ CSWindow::CSWindow(char *protoName) m_filterString = NULL;
}
+void __fastcall SAFE_FREE(void** p)
+{
+ if (*p)
+ {
+ free(*p);
+ *p = NULL;
+ }
+}
+
CSWindow::~CSWindow()
{
delete m_itemslist;
@@ -372,8 +381,8 @@ void CSWindow::initButtons() void CSWindow::loadWindowPosition()
{
- if ( getByte( "RememberWindowPosition", DEFAULT_REMEMBER_WINDOW_POSITION ))
- Utils_RestoreWindowPosition(m_handle,NULL,__INTERNAL_NAME,"Position");
+ if (getByte("RememberWindowPosition", DEFAULT_REMEMBER_WINDOW_POSITION))
+ Utils_RestoreWindowPosition(m_handle, NULL, MODNAME, "Position");
}
void CSWindow::toggleEmptyListMessage()
|