From 8f2b20a2c50f1bf9871b2a1c67fcb17657fc1e96 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 30 Apr 2021 18:21:29 +0300 Subject: =?UTF-8?q?fixes=20#2856=20(=D0=9F=D1=80=D0=BE=D0=BF=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B2=D1=8B=D0=B3=D1=80=D1=83=D0=B7=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/pluginopts.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3