From d908e314c7ab4c3a6ba6dac868f48a37ea95d338 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Mar 2018 23:23:17 +0300 Subject: MB_YESNOCANCEL => MB_YESNO --- plugins/Db3x_mmap/src/init.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/Db3x_mmap/src/init.cpp b/plugins/Db3x_mmap/src/init.cpp index 0910d0a1b2..78647cf8f3 100644 --- a/plugins/Db3x_mmap/src/init.cpp +++ b/plugins/Db3x_mmap/src/init.cpp @@ -65,8 +65,8 @@ static int grokHeader(const wchar_t *profile) // returns 0 if all the APIs are injected otherwise, 1 #define CONVERT_MSG LPGEN("This database is in old format that isn't supported anymore. Press Yes to convert it to the new format or No to return back") -#define MISSING_DB_MSG LPGEN("To open this database you need to install the dbx_mdbx plugin. Click Yes to download it from Miranda NG's site") -#define MISSING_PLUG_MSG LPGEN("To open this database you need to install the Import plugin. Click Yes to download it from Miranda NG's site") +#define MISSING_DB_MSG LPGEN("To open this database you need to install the dbx_mdbx plugin. Click Yes to download it from Miranda NG's site or No to return back") +#define MISSING_PLUG_MSG LPGEN("To open this database you need to install the Import plugin. Click Yes to download it from Miranda NG's site or No to return back") static MDatabaseCommon* LoadDatabase(const wchar_t *profile, BOOL bReadOnly) { @@ -78,12 +78,12 @@ static MDatabaseCommon* LoadDatabase(const wchar_t *profile, BOOL bReadOnly) if (!bReadOnly) { DATABASELINK *pLink = GetDatabasePlugin("dbx_mdbx"); if (pLink == nullptr) { - if (IDYES == MessageBoxW(nullptr, TranslateT(MISSING_DB_MSG), L"Miranda NG", MB_YESNOCANCEL)) + if (IDYES == MessageBoxW(nullptr, TranslateT(MISSING_DB_MSG), L"Miranda NG", MB_YESNO)) Utils_OpenUrl("https://wiki.miranda-ng.org/index.php?title=Plugin:Dbx_mdbx"); return nullptr; } - if (IDYES != MessageBoxW(nullptr, TranslateT(CONVERT_MSG), L"Miranda NG", MB_YESNOCANCEL)) + if (IDYES != MessageBoxW(nullptr, TranslateT(CONVERT_MSG), L"Miranda NG", MB_YESNO)) return nullptr; int errorCode; @@ -103,7 +103,7 @@ LBL_Error: } if (SetServiceModePlugin(L"import") != SERVICE_ONLYDB) { - if (IDYES == MessageBoxW(nullptr, TranslateT(MISSING_PLUG_MSG), L"Miranda NG", MB_OK)) + if (IDYES == MessageBoxW(nullptr, TranslateT(MISSING_PLUG_MSG), L"Miranda NG", MB_YESNO)) Utils_OpenUrl("https://wiki.miranda-ng.org/index.php?title=Plugin:Import"); goto LBL_Error; } -- cgit v1.2.3