summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-01 21:55:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-01 21:55:47 +0000
commit12012a3ea4d58c6624f8065c2ca2afb96090b70f (patch)
tree47e60353bc84f956e1c71241ef563c54dbc8765b /src
parentb2269a81668efaf157d541f2ffd67e52b89417c6 (diff)
service call replaced with helper
git-svn-id: http://svn.miranda-ng.org/main/trunk@3825 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/core/stdchat/src/options.cpp4
-rw-r--r--src/core/stdchat/src/tools.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/stdchat/src/options.cpp b/src/core/stdchat/src/options.cpp
index c729fd5fe8..6eb8721533 100644
--- a/src/core/stdchat/src/options.cpp
+++ b/src/core/stdchat/src/options.cpp
@@ -796,7 +796,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPA
g_Settings.LoggingEnabled = IsDlgButtonChecked(hwndDlg, IDC_LOGGING) == BST_CHECKED?TRUE:FALSE;
DBWriteContactSettingByte(NULL, "Chat", "LoggingEnabled", (BYTE)g_Settings.LoggingEnabled);
if ( g_Settings.LoggingEnabled )
- CallService(MS_UTILS_CREATEDIRTREET, 0, (LPARAM)g_Settings.pszLogDir);
+ CreateDirectoryTreeT(g_Settings.pszLogDir);
iLen = SendDlgItemMessage(hwndDlg,IDC_SPIN2,UDM_GETPOS,0,0);
db_set_w(NULL, "Chat", "LogLimit", (WORD)iLen);
@@ -1073,7 +1073,7 @@ int OptionsInit(void)
SkinAddNewSoundEx("ChatTopic", LPGEN("Group chats"), LPGEN("The topic has been changed"));
if ( g_Settings.LoggingEnabled )
- CallService(MS_UTILS_CREATEDIRTREET, 0, (LPARAM)g_Settings.pszLogDir);
+ CreateDirectoryTreeT(g_Settings.pszLogDir);
{
LOGFONT lf;
HFONT hFont;
diff --git a/src/core/stdchat/src/tools.cpp b/src/core/stdchat/src/tools.cpp
index 752e208cef..d89e1725dd 100644
--- a/src/core/stdchat/src/tools.cpp
+++ b/src/core/stdchat/src/tools.cpp
@@ -535,7 +535,7 @@ BOOL LogToFile(SESSION_INFO* si, GCEVENT * gce)
ValidateFilename(szName);
mir_sntprintf(szFolder, MAX_PATH, _T("%s\\%s"), g_Settings.pszLogDir, szName );
- CallService(MS_UTILS_CREATEDIRTREET, 0, (LPARAM)szFolder);
+ CreateDirectoryTreeT(szFolder);
mir_sntprintf( szName, MAX_PATH, _T("%s.log"), si->ptszID );
ValidateFilename(szName);