summaryrefslogtreecommitdiff
path: root/protocols/MRA/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-01 22:15:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-01 22:15:29 +0000
commitec4498ee255a018ccb16061de4594618e7ab5690 (patch)
tree4d11ae3444c95fba70568b56897acee497a7e6f9 /protocols/MRA/src
parent12012a3ea4d58c6624f8065c2ca2afb96090b70f (diff)
service call replaced with helper: MS_UTILS_PATHTORELATIVE
git-svn-id: http://svn.miranda-ng.org/main/trunk@3826 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src')
-rw-r--r--protocols/MRA/src/MraAvatars.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/MRA/src/MraAvatars.cpp b/protocols/MRA/src/MraAvatars.cpp
index 584b8adca6..0a5d5e48fb 100644
--- a/protocols/MRA/src/MraAvatars.cpp
+++ b/protocols/MRA/src/MraAvatars.cpp
@@ -350,7 +350,7 @@ void CMraProto::MraAvatarsThreadProc(LPVOID lpParameter)
if ( db_get_b(NULL, MRA_AVT_SECT_NAME, "ReturnAbsolutePath", MRA_AVT_DEFAULT_RET_ABC_PATH))
lstrcpyn(pai.filename, wszFileName, SIZEOF(pai.filename));
else
- CallService(MS_UTILS_PATHTORELATIVET, (WPARAM)wszFileName, (LPARAM)pai.filename );
+ PathToRelativeT(wszFileName, pai.filename);
if (bDefaultAvt) dwAvatarFormat = PA_FORMAT_DEFAULT;
SetContactAvatarFormat(pmraaqiAvatarsQueueItem->hContact, dwAvatarFormat);
@@ -610,7 +610,7 @@ DWORD CMraProto::MraAvatarsQueueGetAvatar(HANDLE hAvatarsQueueHandle, DWORD dwFl
if (db_get_b(NULL, MRA_AVT_SECT_NAME, "ReturnAbsolutePath", MRA_AVT_DEFAULT_RET_ABC_PATH))
lstrcpyn(lpszPath, wszFileName, MAX_PATH);
else
- CallService( MS_UTILS_PATHTORELATIVET, (WPARAM)wszFileName, (LPARAM)lpszPath );
+ PathToRelativeT(wszFileName, lpszPath);
}
if (pdwFormat)
*pdwFormat = GetContactAvatarFormat(hContact, PA_FORMAT_DEFAULT);