From e110389857a42787e6cd590369d5605c9bf5599f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Jun 2015 11:33:17 +0000 Subject: another strange perversion removed git-svn-id: http://svn.miranda-ng.org/main/trunk@14286 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.h | 2 +- plugins/StatusPlugins/AdvancedAutoAway/main.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.h b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.h index 984069e6a3..4a96da2544 100644 --- a/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.h +++ b/plugins/StatusPlugins/AdvancedAutoAway/advancedautoaway.h @@ -80,7 +80,7 @@ struct AAMSGSETTING char* msg; }; -extern HINSTANCE hInst, hCore; +extern HINSTANCE hInst; int CompareSettings( const TAAAProtoSetting *p1, const TAAAProtoSetting *p2 ); diff --git a/plugins/StatusPlugins/AdvancedAutoAway/main.cpp b/plugins/StatusPlugins/AdvancedAutoAway/main.cpp index ccc77eacb4..3488a7b2fc 100644 --- a/plugins/StatusPlugins/AdvancedAutoAway/main.cpp +++ b/plugins/StatusPlugins/AdvancedAutoAway/main.cpp @@ -24,7 +24,7 @@ #include "advancedautoaway.h" #include "../resource.h" -HINSTANCE hInst, hCore = NULL; +HINSTANCE hInst; CLIST_INTERFACE *pcli; HANDLE hCSModuleLoadedHook; @@ -38,10 +38,9 @@ int CSModuleLoaded(WPARAM wParam, LPARAM lParam); BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) { - if (fdwReason == DLL_PROCESS_ATTACH) { + if (fdwReason == DLL_PROCESS_ATTACH) hInst = hinstDLL; - hCore = GetModuleHandleA("mir_core.dll"); - } + return TRUE; } -- cgit v1.2.3