From 25221b7d2afb70f82eb3805330fd39a6f6708049 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jun 2012 23:41:55 +0000 Subject: mk: removed all LIST_INTERFACE, MI_INTERFACE & UTF8_INTERFACE instances. all related functions moved to mir_core. git-svn-id: http://svn.miranda-ng.org/main/trunk@644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Chat/main.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'plugins/Chat') diff --git a/plugins/Chat/main.cpp b/plugins/Chat/main.cpp index e9c344ab61..11090d1fc0 100644 --- a/plugins/Chat/main.cpp +++ b/plugins/Chat/main.cpp @@ -27,9 +27,6 @@ HANDLE g_hWindowList; HMENU g_hMenu = NULL; int hLangpack; -struct MM_INTERFACE memoryManagerInterface; -struct UTF8_INTERFACE utfi; - FONTINFO aFonts[OPTIONS_FONTCOUNT]; HICON hIcons[30]; BOOL IEviewInstalled = FALSE; @@ -88,22 +85,12 @@ extern "C" __declspec(dllexport) const MUUID * MirandaPluginInterfaces(void) extern "C" __declspec(dllexport) int Load(PLUGINLINK *link) { BOOL bFlag = FALSE; - HINSTANCE hDll; - -#ifndef NDEBUG //mem leak detector :-) Thanks Tornado! - int flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG); // Get current flag - flag |= _CRTDBG_LEAK_CHECK_DF; // Turn on leak-checking bit - _CrtSetDbgFlag(flag); // Set flag to the new value -#endif - pluginLink = link; // set the memory & utf8 managers - mir_getMMI( &memoryManagerInterface ); - mir_getUTFI( &utfi ); mir_getLP( &pluginInfo ); - hDll = LoadLibraryA("riched20.dll"); + HINSTANCE hDll = LoadLibraryA("riched20.dll"); if ( hDll ) { char modulePath[MAX_PATH]; if (GetModuleFileNameA(hDll, modulePath, MAX_PATH)) { -- cgit v1.2.3