diff options
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));
|