From a0778b193508edbf795685cb6cebfca0d5ea8f8b Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 27 Jan 2015 20:37:56 +0000 Subject: One more attempt to fix #882 git-svn-id: http://svn.miranda-ng.org/main/trunk@11931 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/EmLanProto/src/amdproto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index 63eca6d7dc..26f40d39ab 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -93,7 +93,7 @@ static INT_PTR __cdecl EMPLoadIcon(WPARAM wParam, LPARAM) return (INT_PTR)res; } -static INT_PTR __cdecl EMPGetStatus(WPARAM ,LPARAM ) +static INT_PTR __cdecl EMPGetStatus(WPARAM ,LPARAM) { return g_lan->GetMirandaStatus(); } @@ -349,6 +349,7 @@ INT_PTR CALLBACK EMPDlgProcMessage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA extern "C" int __declspec(dllexport) __cdecl Load() { mir_getLP(&pluginInfo); + g_lan = new CMLan(); PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE }; pd.szName = PROTONAME; @@ -379,7 +380,6 @@ extern "C" int __declspec(dllexport) __cdecl Load() g_heOptions = HookEvent(ME_OPT_INITIALISE,EMPCreateOptionsDlg); - g_lan = new CMLan(); return 0; } -- cgit v1.2.3