diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-11 21:33:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-11 21:33:00 +0000 |
commit | d74103c8def2fdf60ca5cf8981a3558bc9728b31 (patch) | |
tree | 4e45dc0349d7327be373ba1ae34e4011385b3ce7 /src | |
parent | 4c5641e00f4444fc29af12d5957ae6844ffd89b2 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/chat/manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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));
|