summaryrefslogtreecommitdiff
path: root/src/modules/plugins/newplugins.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-12 15:59:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-12 15:59:42 +0000
commitec2d0c98145867ab68ab844a469fc26b3da9f820 (patch)
tree890ff9f4d12d73b173fe8a169f8bc370817e23ee /src/modules/plugins/newplugins.cpp
parent3c46e9a5151c88950e13ac6c2132496ca871ff87 (diff)
fix for 4 clists appearing active on a clean profile
git-svn-id: http://svn.miranda-ng.org/main/trunk@928 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/plugins/newplugins.cpp')
-rw-r--r--src/modules/plugins/newplugins.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp
index 6b2eb6d63a..9712f01d07 100644
--- a/src/modules/plugins/newplugins.cpp
+++ b/src/modules/plugins/newplugins.cpp
@@ -524,7 +524,10 @@ static BOOL scanPluginsDir(WIN32_FIND_DATA *fd, TCHAR *path, WPARAM, LPARAM)
void SetPluginOnWhiteList(const TCHAR* pluginname, int allow)
{
- DBWriteContactSettingByte(NULL, PLUGINDISABLELIST, StrConvA(pluginname), allow == 0);
+ char plugName[MAX_PATH];
+ strncpy(plugName, StrConvA(pluginname), SIZEOF(plugName));
+ strlwr(plugName);
+ DBWriteContactSettingByte(NULL, PLUGINDISABLELIST, plugName, allow == 0);
}
// returns 1 if the plugin should be enabled within this profile, filename is always lower case