summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-31 21:32:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-31 21:32:42 +0000
commit5129d51c859daf669ef01099a563621f85037405 (patch)
tree5231973098ac9cb8152cbdb1af6d4c9dfa950c1d /plugins/DbChecker/src/main.cpp
parent6554e92c3b73386100f6143424f51933824aa8cd (diff)
automated conversion mode
git-svn-id: http://svn.miranda-ng.org/main/trunk@11702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbChecker/src/main.cpp')
-rw-r--r--plugins/DbChecker/src/main.cpp5
1 files changed, 3 insertions, 2 deletions
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);