summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbheaders.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-02 17:18:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-02 17:18:54 +0000
commit28ae6ab06d8d29c4601fdb69622ae5eda2f35b84 (patch)
tree90e9607092c74c0d8756f974f820f6e64656ab4a /plugins/Db3x_mmap/src/dbheaders.cpp
parent5174b6de32477883b4efe1235643c9faa273521b (diff)
fix for the message text and url in wiki
git-svn-id: http://svn.miranda-ng.org/main/trunk@9645 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbheaders.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbheaders.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbheaders.cpp b/plugins/Db3x_mmap/src/dbheaders.cpp
index 8f39fada64..9a5ccfbe9e 100644
--- a/plugins/Db3x_mmap/src/dbheaders.cpp
+++ b/plugins/Db3x_mmap/src/dbheaders.cpp
@@ -54,7 +54,9 @@ int CDb3Mmap::CreateDbHeaders(const DBSignature& _sign)
/////////////////////////////////////////////////////////////////////////////////////////
-static TCHAR tszOldHeaders[] = _T("Miranda cannot open the obsolete database. Press Yes to download a solution or No to cancel");
+static TCHAR tszOldHeaders[] =
+ _T("This profile is too old to be updated with PluginUpdater, your database must be converted first.\n\n")
+ _T("Please press Yes to read further instructions or No to cancel");
int CDb3Mmap::CheckDbHeaders()
{
@@ -65,9 +67,11 @@ int CDb3Mmap::CheckDbHeaders()
!memcmp(&m_dbHeader.signature, &dbSignatureSA, sizeof(m_dbHeader.signature)) ||
!memcmp(&m_dbHeader.signature, &dbSignatureSD, sizeof(m_dbHeader.signature)))
{
- if (IDYES == MessageBox(NULL, TranslateTS(tszOldHeaders), TranslateT("Obsolete database format"), MB_YESNO | MB_ICONHAND)) {
+ if (IDYES == MessageBox(NULL, TranslateTS(tszOldHeaders), TranslateT("Obsolete database format"), MB_YESNO | MB_ICONINFORMATION)) {
TCHAR tszCurPath[MAX_PATH];
GetModuleFileName(NULL, tszCurPath, SIZEOF(tszCurPath));
+ TCHAR *p = _tcsrchr(tszCurPath, '\\');
+ if (p) *p = 0;
HKEY hPathSetting;
if (!RegCreateKey(HKEY_CURRENT_USER, _T("Software\\Miranda NG"), &hPathSetting)) {
@@ -76,6 +80,7 @@ int CDb3Mmap::CheckDbHeaders()
}
CallService(MS_UTILS_OPENURL, 0, LPARAM("http://wiki.miranda-ng.org/index.php?title=Updating_pre-0.94.9_version_to_0.95.1_and_later"));
+ Sleep(1000);
exit(0);
}
}