diff options
author | George Hazan <george.hazan@gmail.com> | 2024-10-18 16:40:39 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-10-18 16:40:39 +0300 |
commit | 63e7528ad06d3a12f8f46f89b8124e6b347d3074 (patch) | |
tree | 539c3b229b4eda4b000321976a3a465b2a0576e9 /src/mir_app | |
parent | ea162a6fdb1d7a1c4f11b8e8529391a7bee56730 (diff) |
no need to check the same API presence twice...
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/newplugins.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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
|