From 12012a3ea4d58c6624f8065c2ca2afb96090b70f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 Mar 2013 21:55:47 +0000 Subject: service call replaced with helper git-svn-id: http://svn.miranda-ng.org/main/trunk@3825 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_avatar.cpp | 6 +++--- protocols/Tlen/src/tlen_picture.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Tlen/src') diff --git a/protocols/Tlen/src/tlen_avatar.cpp b/protocols/Tlen/src/tlen_avatar.cpp index 07de0e6b58..f6460e905b 100644 --- a/protocols/Tlen/src/tlen_avatar.cpp +++ b/protocols/Tlen/src/tlen_avatar.cpp @@ -41,9 +41,9 @@ void TlenGetAvatarFileName(TlenProtocol *proto, JABBER_LIST_ITEM *item, TCHAR* p tPathLen = mir_sntprintf( ptszDest, cbLen, TEXT("%s\\Tlen"), tmpPath ); mir_free(tmpPath); dwAttributes = GetFileAttributes( ptszDest ); - if ( dwAttributes == 0xffffffff || ( dwAttributes & FILE_ATTRIBUTE_DIRECTORY ) == 0 ) { - CallService( MS_UTILS_CREATEDIRTREET, 0, ( LPARAM )ptszDest ); - } + if (dwAttributes == 0xffffffff || ( dwAttributes & FILE_ATTRIBUTE_DIRECTORY ) == 0) + CreateDirectoryTreeT(ptszDest); + ptszDest[ tPathLen++ ] = '\\'; if (item != NULL) { format = item->avatarFormat; diff --git a/protocols/Tlen/src/tlen_picture.cpp b/protocols/Tlen/src/tlen_picture.cpp index 8a86c1e2e5..d61842d8dd 100644 --- a/protocols/Tlen/src/tlen_picture.cpp +++ b/protocols/Tlen/src/tlen_picture.cpp @@ -224,9 +224,9 @@ void TlenProcessPic(XmlNode *node, TlenProtocol *proto) { int tPathLen = mir_snprintf( fileName, MAX_PATH, "%s\\Images\\Tlen", tmpPath ); long oldSize = 0, lSize = atol(size); DWORD dwAttributes = GetFileAttributesA( fileName ); - if ( dwAttributes == 0xffffffff || ( dwAttributes & FILE_ATTRIBUTE_DIRECTORY ) == 0 ) { - CallService( MS_UTILS_CREATEDIRTREE, 0, ( LPARAM )fileName ); - } + if ( dwAttributes == 0xffffffff || ( dwAttributes & FILE_ATTRIBUTE_DIRECTORY ) == 0 ) + CreateDirectoryTree(fileName); + mir_free(tmpPath); fileName[ tPathLen++ ] = '\\'; mir_snprintf( fileName + tPathLen, MAX_PATH - tPathLen, "%s.%s", crc, ext ); -- cgit v1.2.3