diff options
Diffstat (limited to 'plugins/AutoShutdown/src/settingsdlg.cpp')
| -rw-r--r-- | plugins/AutoShutdown/src/settingsdlg.cpp | 16 | 
1 files changed, 2 insertions, 14 deletions
diff --git a/plugins/AutoShutdown/src/settingsdlg.cpp b/plugins/AutoShutdown/src/settingsdlg.cpp index 58e3911e07..15bcc187c5 100644 --- a/plugins/AutoShutdown/src/settingsdlg.cpp +++ b/plugins/AutoShutdown/src/settingsdlg.cpp @@ -21,11 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  #include "stdafx.h"
 -/* Menu Item */
 -static HANDLE hServiceMenuCommand;
 -
  /* Services */
 -static HANDLE hServiceShowDlg;
  static HWND hwndSettingsDlg;
  extern HINSTANCE hInst;
 @@ -482,20 +478,12 @@ static INT_PTR MenuItemCommand(WPARAM, LPARAM)  void InitSettingsDlg(void)
  {
  	/* Menu Item */
 -	hServiceMenuCommand = CreateServiceFunction("AutoShutdown/MenuCommand", MenuItemCommand);
 +	CreateServiceFunction("AutoShutdown/MenuCommand", MenuItemCommand);
  	hMainMenuItem = hTrayMenuItem = NULL;
  	SetShutdownMenuItem(false);
  	/* Hotkey */
  	AddHotkey();
  	/* Services */
  	hwndSettingsDlg = NULL;
 -	hServiceShowDlg = CreateServiceFunction(MS_AUTOSHUTDOWN_SHOWSETTINGSDIALOG, ServiceShowSettingsDialog);
 -}
 -
 -void UninitSettingsDlg(void)
 -{
 -	/* Menu Item */
 -	DestroyServiceFunction(hServiceMenuCommand);
 -	/* Services */
 -	DestroyServiceFunction(hServiceShowDlg);
 +	CreateServiceFunction(MS_AUTOSHUTDOWN_SHOWSETTINGSDIALOG, ServiceShowSettingsDialog);
  }
  | 
