diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_avatar.cpp | 2 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/icqosc_svcs.cpp | 2 | ||||
-rw-r--r-- | protocols/MRA/src/MraAvatars.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IcqOscarJ/src/icq_avatar.cpp b/protocols/IcqOscarJ/src/icq_avatar.cpp index 0ba204700d..57616ecde7 100644 --- a/protocols/IcqOscarJ/src/icq_avatar.cpp +++ b/protocols/IcqOscarJ/src/icq_avatar.cpp @@ -1225,7 +1225,7 @@ void avatars_server_connection::handleAvatarFam(BYTE *pBuffer, size_t wBufferLen if (!pCookieData->hContact) { // our avatar, set filename
wchar_t tmp[MAX_PATH * 2];
- PathToRelativeT(tszImageFile, tmp);
+ PathToRelativeW(tszImageFile, tmp);
ppro->setWString(NULL, "AvatarFile", tmp);
}
else { // contact's avatar set hash
diff --git a/protocols/IcqOscarJ/src/icqosc_svcs.cpp b/protocols/IcqOscarJ/src/icqosc_svcs.cpp index fad62bf3e7..55b78d8bfe 100644 --- a/protocols/IcqOscarJ/src/icqosc_svcs.cpp +++ b/protocols/IcqOscarJ/src/icqosc_svcs.cpp @@ -523,7 +523,7 @@ INT_PTR CIcqProto::SetMyAvatar(WPARAM, LPARAM lParam) debugLogA("Failed to save avatar hash.");
wchar_t tmp[MAX_PATH];
- PathToRelativeT(tszMyFile, tmp);
+ PathToRelativeW(tszMyFile, tmp);
setWString(NULL, "AvatarFile", tmp);
SAFE_FREE((void**)&hash);
}
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);
|