summaryrefslogtreecommitdiff
path: root/src/modules/plugins/newplugins.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/plugins/newplugins.cpp')
-rw-r--r--src/modules/plugins/newplugins.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp
index 70fcb8ca4d..82f6d9d6ee 100644
--- a/src/modules/plugins/newplugins.cpp
+++ b/src/modules/plugins/newplugins.cpp
@@ -282,14 +282,12 @@ LBL_Ok:
return 1;
}
// check clist ?
- else if (checkTypeAPI == CHECKAPI_CLIST) {
+ if (checkTypeAPI == CHECKAPI_CLIST) {
bpi->clistlink = (CList_Initialise)GetProcAddress(h, "CListInitialise");
- if (pi->flags & UNICODE_AWARE)
- if (bpi->clistlink)
- goto LBL_Ok;
+ if ((pi->flags & UNICODE_AWARE) && bpi->clistlink)
+ goto LBL_Ok;
}
- else
- goto LBL_Error;
+ goto LBL_Error;
}
// perform any API related tasks to freeing