diff options
author | George Hazan <ghazan@miranda.im> | 2021-04-30 18:21:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-04-30 18:21:29 +0300 |
commit | 8f2b20a2c50f1bf9871b2a1c67fcb17657fc1e96 (patch) | |
tree | 9a01669e991e45a0efc9a913baf892fd96885068 /src | |
parent | 9f00802dfbad293235fc44536069c64b236fdc50 (diff) |
fixes #2856 (Пропала возможность выгрузить плагин)
Diffstat (limited to 'src')
-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;
|