diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-08 11:59:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-08 11:59:49 +0300 |
commit | e06357e08f44b4537514ba1d97562e5e005ac8b4 (patch) | |
tree | a559ce6c64cc25b3d05730f575321aaa02314bfe /src/mir_app | |
parent | ff65292a817e82bf5fd58811cfa436a8c5232bd9 (diff) |
crash fix
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/MDatabaseCommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/MDatabaseCommon.cpp b/src/mir_app/src/MDatabaseCommon.cpp index 657b6a703b..d22c530517 100644 --- a/src/mir_app/src/MDatabaseCommon.cpp +++ b/src/mir_app/src/MDatabaseCommon.cpp @@ -502,7 +502,7 @@ STDMETHODIMP_(BOOL) MDatabaseCommon::WriteContactSetting(MCONTACT contactID, DBC return 1; dbcwWork.value.cchVal = (WORD)strlen(dbcwWork.value.pszVal); - if (bIsEncrypted) { + if (bIsEncrypted && m_crypto) { size_t len; BYTE *pResult = m_crypto->encodeString(dbcwWork.value.pszVal, &len); if (pResult != nullptr) { |