From d74103c8def2fdf60ca5cf8981a3558bc9728b31 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 11 Dec 2014 21:33:00 +0000 Subject: chat manager to simply return a CHAT_INTERFACE* to non-SRMM plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@11337 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/chat/manager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules') diff --git a/src/modules/chat/manager.cpp b/src/modules/chat/manager.cpp index e5912e801c..f4fc2acc09 100644 --- a/src/modules/chat/manager.cpp +++ b/src/modules/chat/manager.cpp @@ -1179,6 +1179,9 @@ static BOOL LM_RemoveAll(LOGINFO **ppLogListStart, LOGINFO **ppLogListEnd) INT_PTR SvcGetChatManager(WPARAM wParam, LPARAM lParam) { + if (lParam == NULL) + return (INT_PTR)&ci; + // wipe out old junk memset(PBYTE(&ci) + offsetof(CHAT_MANAGER, OnCreateModule), 0, sizeof(CHAT_MANAGER)-offsetof(CHAT_MANAGER, OnCreateModule)); -- cgit v1.2.3