From 63e7528ad06d3a12f8f46f89b8124e6b347d3074 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 Oct 2024 16:40:39 +0300 Subject: no need to check the same API presence twice... --- src/mir_app/src/newplugins.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp index 7e029b5479..2783e4bd3c 100644 --- a/src/mir_app/src/newplugins.cpp +++ b/src/mir_app/src/newplugins.cpp @@ -227,6 +227,9 @@ static bool validInterfaceList(const MUUID *piface) bool pluginEntry::checkAPI(wchar_t *plugin) { + if (bHasBasicApi) + return true; + SetErrorMode(SEM_FAILCRITICALERRORS); // disable error messages HINSTANCE h = LoadLibrary(plugin); SetErrorMode(0); // reset the system default -- cgit v1.2.3