diff options
-rw-r--r-- | src/mir_app/src/pluginopts.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp index 4f63a727bd..90b489b082 100644 --- a/src/mir_app/src/pluginopts.cpp +++ b/src/mir_app/src/pluginopts.cpp @@ -245,7 +245,10 @@ static bool LoadPluginDynamically(PluginListItemData *dat) static bool UnloadPluginDynamically(PluginListItemData *dat)
{
- pluginEntry *p = pluginList.find((pluginEntry*)dat->fileName);
+ pluginEntry tmp;
+ strncpy_s(tmp.pluginname, _T2A(dat->fileName), _TRUNCATE);
+
+ pluginEntry *p = pluginList.find(&tmp);
if (p) {
if (!Plugin_UnloadDyn(p))
return false;
|