diff options
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcrypt.cpp')
-rw-r--r-- | plugins/Db3x_mmap/src/dbcrypt.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbcrypt.cpp b/plugins/Db3x_mmap/src/dbcrypt.cpp index 179698fb1f..e6bb7e704b 100644 --- a/plugins/Db3x_mmap/src/dbcrypt.cpp +++ b/plugins/Db3x_mmap/src/dbcrypt.cpp @@ -161,8 +161,11 @@ LBL_SetNewKey: if (dbv.cpbVal != (WORD)iKeyLength)
goto LBL_SetNewKey;
- if (!m_crypto->setKey(dbv.pbVal, iKeyLength))
- goto LBL_SetNewKey;
+ if (!m_crypto->setKey(dbv.pbVal, iKeyLength)) {
+ if (!EnterPassword(dbv.pbVal, iKeyLength)) // password protected?
+ return 4;
+ m_bUsesPassword = true;
+ }
FreeVariant(&dbv);
}
|