diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-01 21:55:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-01 21:55:47 +0000 |
commit | 12012a3ea4d58c6624f8065c2ca2afb96090b70f (patch) | |
tree | 47e60353bc84f956e1c71241ef563c54dbc8765b /protocols/Tlen/src/tlen_avatar.cpp | |
parent | b2269a81668efaf157d541f2ffd67e52b89417c6 (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 'protocols/Tlen/src/tlen_avatar.cpp')
-rw-r--r-- | protocols/Tlen/src/tlen_avatar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
|