From 28ae6ab06d8d29c4601fdb69622ae5eda2f35b84 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 2 Jul 2014 17:18:54 +0000 Subject: 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 --- plugins/Db3x_mmap/src/dbheaders.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugins/Db3x_mmap/src') 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); } } -- cgit v1.2.3