diff options
-rw-r--r-- | src/mir_app/src/newplugins.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp index cfeca33159..9e93ea32eb 100644 --- a/src/mir_app/src/newplugins.cpp +++ b/src/mir_app/src/newplugins.cpp @@ -518,10 +518,10 @@ int isPluginOnWhiteList(const wchar_t* pluginname) bool TryLoadPlugin(pluginEntry *p, bool bDynamic)
{
- if (p->bpi.hInst == nullptr) {
- if (!bDynamic && !isPluginOnWhiteList(p->pluginname))
- return false;
+ if (!bDynamic && !isPluginOnWhiteList(p->pluginname))
+ return false;
+ if (p->bpi.hInst == nullptr) {
if (!p->bHasBasicApi) {
wchar_t exe[MAX_PATH], tszFullPath[MAX_PATH];
GetModuleFileName(nullptr, exe, _countof(exe));
|