From 6b05d57a1d02f233409a2e4392e22b7a3a756a8f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Apr 2013 11:37:28 +0000 Subject: fix for the undocumented MS_CLIST_RETRIEVE_INTERFACE feature git-svn-id: http://svn.miranda-ng.org/main/trunk@4384 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdclist/src/init.cpp | 1 + src/modules/clist/clistcore.cpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/stdclist/src/init.cpp b/src/core/stdclist/src/init.cpp index b8b542cc35..56774e5d29 100644 --- a/src/core/stdclist/src/init.cpp +++ b/src/core/stdclist/src/init.cpp @@ -136,6 +136,7 @@ extern "C" __declspec(dllexport) int CListInitialise() mir_getLP( &pluginInfo ); mir_getCLI(); + pcli->hInst = g_hInst; pcli->pfnPaintClc = PaintClc; MySetLayeredWindowAttributes = (BOOL(WINAPI *) (HWND, COLORREF, BYTE, DWORD)) GetProcAddress( diff --git a/src/modules/clist/clistcore.cpp b/src/modules/clist/clistcore.cpp index d69a1a77db..3979e73cfc 100644 --- a/src/modules/clist/clistcore.cpp +++ b/src/modules/clist/clistcore.cpp @@ -62,7 +62,7 @@ static void fnReloadProtoMenus(void) cli.pfnCluiProtocolStatusChanged(0, 0); } -static INT_PTR srvRetrieveInterface(WPARAM, LPARAM lParam) +static INT_PTR srvRetrieveInterface(WPARAM, LPARAM) { int rc; @@ -211,8 +211,6 @@ static INT_PTR srvRetrieveInterface(WPARAM, LPARAM lParam) cli.pfnReloadExtraIcons = fnReloadExtraIcons; cli.pfnSetAllExtraIcons = fnSetAllExtraIcons; - cli.hInst = (HMODULE)lParam; - rc = LoadContactListModule2(); if (rc == 0) rc = LoadCLCModule(); -- cgit v1.2.3