From be3185a374d39a8ee0f12a4e985ecca279633fff Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 28 Jul 2012 18:29:52 +0000 Subject: - MS_DB_CHECKPROFILE - service for checking databases - added menu item "Check" to a context menu in profile manager git-svn-id: http://svn.miranda-ng.org/main/trunk@1228 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbChecker/src/wizard.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'plugins/DbChecker/src/wizard.cpp') diff --git a/plugins/DbChecker/src/wizard.cpp b/plugins/DbChecker/src/wizard.cpp index 7a49a06daf..bfc5c5774e 100644 --- a/plugins/DbChecker/src/wizard.cpp +++ b/plugins/DbChecker/src/wizard.cpp @@ -98,7 +98,10 @@ INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lP SendMessage(hdlg, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(hInst, MAKEINTRESOURCE(IDI_DBTOOL))); hdlgPage = NULL; bLaunchMiranda = false; - SendMessage(hdlg, WZM_GOTOPAGE, IDD_WELCOME, (LPARAM)WelcomeDlgProc); + if (bShortMode) + SendMessage(hdlg, WZM_GOTOPAGE, IDD_SELECTDB, (LPARAM)SelectDbDlgProc); + else + SendMessage(hdlg, WZM_GOTOPAGE, IDD_WELCOME, (LPARAM)WelcomeDlgProc); TranslateDialogDefault(hdlg); return TRUE; @@ -138,8 +141,14 @@ INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lP CloseHandle(opts.hOutFile); DestroyWindow(hdlgPage); - if (hBoldFont != NULL) DeleteObject(hBoldFont); - if (hEmfHeaderLogo != NULL) DeleteEnhMetaFile(hEmfHeaderLogo); + if (hBoldFont != NULL) { + DeleteObject(hBoldFont); + hBoldFont = NULL; + } + if (hEmfHeaderLogo != NULL) { + DeleteEnhMetaFile(hEmfHeaderLogo); + hEmfHeaderLogo = NULL; + } break; } return FALSE; -- cgit v1.2.3