diff options
author | Kirill Volinsky <Mataes2007@gmail.com> | 2018-05-16 13:28:43 +0300 |
---|---|---|
committer | Kirill Volinsky <Mataes2007@gmail.com> | 2018-05-16 13:28:43 +0300 |
commit | 2e8582832fe56c89bb422b82e884ddaf67a8dbb3 (patch) | |
tree | 632f1d87304b349d0a6357f1606ed01c8ddae37a /plugins/AutoShutdown/src/shutdownsvc.cpp | |
parent | 6118d2cff50492b4edc6d7b478c2fd2dc7fdbd7b (diff) |
AutoShutdown: cmplugin adaptation
Diffstat (limited to 'plugins/AutoShutdown/src/shutdownsvc.cpp')
-rw-r--r-- | plugins/AutoShutdown/src/shutdownsvc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/AutoShutdown/src/shutdownsvc.cpp b/plugins/AutoShutdown/src/shutdownsvc.cpp index bce97d110c..377da09040 100644 --- a/plugins/AutoShutdown/src/shutdownsvc.cpp +++ b/plugins/AutoShutdown/src/shutdownsvc.cpp @@ -23,7 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* Shutdown Dialog */
static HWND hwndShutdownDlg;
-extern HINSTANCE hInst;
/* Events */
static HANDLE hEventOkToShutdown,hEventShutdown;
@@ -430,7 +429,7 @@ INT_PTR ServiceShutdown(WPARAM wParam, LPARAM lParam) NotifyEventHooks(hEventShutdown, wParam, lParam);
/* show dialog */
if (lParam && db_get_b(NULL, "AutoShutdown", "ShowConfirmDlg", SETTING_SHOWCONFIRMDLG_DEFAULT))
- if (CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_SHUTDOWNNOW), nullptr, ShutdownDlgProc, (BYTE)wParam) != nullptr)
+ if (CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_SHUTDOWNNOW), nullptr, ShutdownDlgProc, (BYTE)wParam) != nullptr)
return 0;
/* show error */
|