diff options
author | George Hazan <george.hazan@gmail.com> | 2013-11-24 10:30:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-11-24 10:30:09 +0000 |
commit | b3ff3ae53a9f25490aab8c8327ba0eda80ab6f21 (patch) | |
tree | adda269719660d7aa6b9426c5d95d120665adbf2 /plugins | |
parent | 9d0797bcde7ae23a933ba98e537841c802b99627 (diff) |
temporary fix for profiles corrupted by mmap_sa
git-svn-id: http://svn.miranda-ng.org/main/trunk@6971 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Db3x_mmap/src/dbcrypt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbcrypt.cpp b/plugins/Db3x_mmap/src/dbcrypt.cpp index c2b8e1ec36..b0054bacbf 100644 --- a/plugins/Db3x_mmap/src/dbcrypt.cpp +++ b/plugins/Db3x_mmap/src/dbcrypt.cpp @@ -31,6 +31,7 @@ int CDb3Base::InitCrypt() dbv.type = DBVT_ASCIIZ;
DBCONTACTGETSETTING dbcgs = { "CryptoEngine", "Provider", &dbv };
if (GetContactSettingStr(NULL, &dbcgs)) {
+LBL_CreateProvider:
CRYPTO_PROVIDER **ppProvs;
int iNumProvs;
Crypto_EnumProviders(&iNumProvs, &ppProvs);
@@ -38,7 +39,7 @@ int CDb3Base::InitCrypt() return 1;
pProvider = ppProvs[0]; //!!!!!!!!!!!!!!!!!!
-
+
DBCONTACTWRITESETTING dbcws = { "CryptoEngine", "Provider" };
dbcws.value.type = DBVT_ASCIIZ;
dbcws.value.pszVal = pProvider->pszName;
@@ -48,7 +49,7 @@ int CDb3Base::InitCrypt() pProvider = Crypto_GetProvider(dbv.pszVal);
FreeVariant(&dbv);
if (pProvider == NULL)
- return 2;
+ goto LBL_CreateProvider;
}
if ((m_crypto = pProvider->pFactory()) == NULL)
|