summaryrefslogtreecommitdiff
path: root/src/modules/database
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-10 14:54:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-10 14:54:31 +0000
commit335093ec0bf36903749ce615b1635082bb93b222 (patch)
treee7952f06f19e7f9c6d8fb8bdd5e46361819a8a23 /src/modules/database
parent8c6a514451d2342514713d21ef65ae46683dd5ee (diff)
fix for database plugins load order compatibility
git-svn-id: http://svn.miranda-ng.org/main/trunk@1432 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database')
-rw-r--r--src/modules/database/dbintf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/database/dbintf.cpp b/src/modules/database/dbintf.cpp
index 62850c55da..61b737a780 100644
--- a/src/modules/database/dbintf.cpp
+++ b/src/modules/database/dbintf.cpp
@@ -177,7 +177,7 @@ static INT_PTR srvRegisterPlugin(WPARAM wParam,LPARAM lParam)
static INT_PTR srvFindPlugin(WPARAM wParam,LPARAM lParam)
{
- for (int i=0; i < arDbPlugins.getCount(); i++) {
+ for (int i=arDbPlugins.getCount()-1; i >= 0; i--) {
int error = arDbPlugins[i]->grokHeader((TCHAR*)lParam);
if (error == ERROR_SUCCESS)
return (INT_PTR)arDbPlugins[i];