diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-15 14:53:22 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-15 14:53:22 +0000 |
commit | 156c91b93ca6674da6f7021b8579b62d79403f20 (patch) | |
tree | 4275a5dfd90d901d0c01912eb3d0ded87c17993b /src/modules/chat/manager.cpp | |
parent | 80d0910aafedcb860aad11995aab0dc0ca3d7585 (diff) |
correct way of colors & fonts initialization
git-svn-id: http://svn.miranda-ng.org/main/trunk@7666 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/chat/manager.cpp')
-rw-r--r-- | src/modules/chat/manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/chat/manager.cpp b/src/modules/chat/manager.cpp index 4b2194df98..cacb05eb50 100644 --- a/src/modules/chat/manager.cpp +++ b/src/modules/chat/manager.cpp @@ -66,8 +66,7 @@ static SESSION_INFO* SM_AddSession(const TCHAR *pszID, const char *pszModule) return NULL;
if (!ci.SM_FindSession(pszID, pszModule)) {
- SESSION_INFO *node = (SESSION_INFO*)mir_alloc(sizeof(SESSION_INFO));
- ZeroMemory(node, sizeof(SESSION_INFO));
+ SESSION_INFO *node = (SESSION_INFO*)mir_calloc(sizeof(SESSION_INFO));
node->ptszID = mir_tstrdup(pszID);
node->pszModule = mir_strdup(pszModule);
@@ -1483,8 +1482,10 @@ CHAT_MANAGER ci = LoadMsgDlgFont
};
-INT_PTR SvcGetChatManager(WPARAM, LPARAM)
+INT_PTR SvcGetChatManager(WPARAM, LPARAM lParam)
{
LoadChatModule();
+ ci.pSettings = (GlobalLogSettingsBase*)lParam;
+ OptionsInit();
return (INT_PTR)&ci;
}
|