From 5129d51c859daf669ef01099a563621f85037405 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 31 Dec 2014 21:32:42 +0000 Subject: automated conversion mode git-svn-id: http://svn.miranda-ng.org/main/trunk@11702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbChecker/src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/DbChecker/src/main.cpp') diff --git a/plugins/DbChecker/src/main.cpp b/plugins/DbChecker/src/main.cpp index 6f9cc48fbc..6b6c8603c0 100644 --- a/plugins/DbChecker/src/main.cpp +++ b/plugins/DbChecker/src/main.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. HINSTANCE hInst; int hLangpack = 0; -bool bServiceMode, bLaunchMiranda, bShortMode; +bool bServiceMode, bLaunchMiranda, bShortMode, bAutoExit; HANDLE hService; DbToolOptions opts = { 0 }; @@ -61,7 +61,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_SERVIC static INT_PTR ServiceMode(WPARAM, LPARAM) { - bLaunchMiranda = bShortMode = false; + bLaunchMiranda = bShortMode = bAutoExit = false; bServiceMode = true; DialogBox(hInst, MAKEINTRESOURCE(IDD_WIZARD), NULL, WizardDlgProc); return (bLaunchMiranda) ? SERVICE_CONTINUE : SERVICE_FAILED; @@ -71,6 +71,7 @@ static INT_PTR CheckProfile(WPARAM wParam, LPARAM lParam) { bShortMode = true; bLaunchMiranda = lParam != 0; + bAutoExit = lParam == 2; bServiceMode = false; _tcsncpy(opts.filename, (TCHAR*)wParam, SIZEOF(opts.filename)); return DialogBox(hInst, MAKEINTRESOURCE(IDD_WIZARD), NULL, WizardDlgProc); -- cgit v1.2.3