From 2e8582832fe56c89bb422b82e884ddaf67a8dbb3 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 16 May 2018 13:28:43 +0300 Subject: AutoShutdown: cmplugin adaptation --- plugins/AutoShutdown/src/options.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/AutoShutdown/src/options.cpp') diff --git a/plugins/AutoShutdown/src/options.cpp b/plugins/AutoShutdown/src/options.cpp index c9b8a508ce..f0b2255566 100644 --- a/plugins/AutoShutdown/src/options.cpp +++ b/plugins/AutoShutdown/src/options.cpp @@ -23,7 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* Option Page */ static HANDLE hHookOptInit; -extern HINSTANCE hInst; /* Trigger */ static HANDLE hHookModulesLoaded; @@ -107,7 +106,7 @@ static INT_PTR CALLBACK ShutdownOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam static int ShutdownOptInit(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; - odp.hInstance = hInst; + odp.hInstance = g_plugin.getInst(); odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_SHUTDOWN); odp.position = 900000002; odp.szGroup.w = LPGENW("Events"); /* autotranslated */ -- cgit v1.2.3