summaryrefslogtreecommitdiff
path: root/protocols/MRA
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-11-17 22:24:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-11-17 22:24:00 +0300
commitf7d5fcc117aaeccfdc98bce2a4280641ee7e52c9 (patch)
tree18da75eb5431b7c913f6893a7dce98740436487b /protocols/MRA
parent3079a6563ebc5887839ec29984206f2950638a4d (diff)
PathToRelativeT - forgotten macro
Diffstat (limited to 'protocols/MRA')
-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 8986f6e781..4e4183c1f3 100644
--- a/protocols/MRA/src/MraAvatars.cpp
+++ b/protocols/MRA/src/MraAvatars.cpp
@@ -318,7 +318,7 @@ void CMraProto::MraAvatarsThreadProc(LPVOID lpParameter)
if (db_get_b(NULL, MRA_AVT_SECT_NAME, "ReturnAbsolutePath", MRA_AVT_DEFAULT_RET_ABC_PATH))
wcsncpy_s(ai.filename, wszFileName, _TRUNCATE);
else
- PathToRelativeT(wszFileName, ai.filename);
+ PathToRelativeW(wszFileName, ai.filename);
SetContactAvatarFormat(pmraaqiAvatarsQueueItem->hContact, dwAvatarFormat);
MraAvatarsSetContactTime(pmraaqiAvatarsQueueItem->hContact, "AvatarLastModifiedTime", &itAvatarLastModifiedTimeServer.stTime);
@@ -532,7 +532,7 @@ DWORD CMraProto::MraAvatarsQueueGetAvatar(HANDLE hQueue, DWORD dwFlags, MCONTACT
if (db_get_b(NULL, MRA_AVT_SECT_NAME, "ReturnAbsolutePath", MRA_AVT_DEFAULT_RET_ABC_PATH))
mir_wstrncpy(lpszPath, wszFileName, MAX_PATH);
else
- PathToRelativeT(wszFileName, lpszPath);
+ PathToRelativeW(wszFileName, lpszPath);
}
if (pdwFormat)
*pdwFormat = ProtoGetAvatarFormat(lpszPath);