summaryrefslogtreecommitdiff
path: root/plugins/AVS/src
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 /plugins/AVS/src
parent3079a6563ebc5887839ec29984206f2950638a4d (diff)
PathToRelativeT - forgotten macro
Diffstat (limited to 'plugins/AVS/src')
-rw-r--r--plugins/AVS/src/options.cpp2
-rw-r--r--plugins/AVS/src/services.cpp4
-rw-r--r--plugins/AVS/src/utils.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/AVS/src/options.cpp b/plugins/AVS/src/options.cpp
index cd5fc11f54..28d87ec713 100644
--- a/plugins/AVS/src/options.cpp
+++ b/plugins/AVS/src/options.cpp
@@ -120,7 +120,7 @@ static void SetProtoPic(char *szProto)
return;
wchar_t szNewPath[MAX_PATH];
- PathToRelativeT(FileName, szNewPath, g_szDataPath);
+ PathToRelativeW(FileName, szNewPath, g_szDataPath);
db_set_ws(NULL, PPICT_MODULE, szProto, szNewPath);
if (!mir_strcmp(AVS_DEFAULT, szProto)) {
diff --git a/plugins/AVS/src/services.cpp b/plugins/AVS/src/services.cpp
index cb27c8d98e..24d80dd7bb 100644
--- a/plugins/AVS/src/services.cpp
+++ b/plugins/AVS/src/services.cpp
@@ -160,7 +160,7 @@ static INT_PTR avSetAvatar(MCONTACT hContact, wchar_t *tszPath)
// file exists...
wchar_t szBackupName[MAX_PATH];
- PathToRelativeT(szFinalName, szBackupName, g_szDataPath);
+ PathToRelativeW(szFinalName, szBackupName, g_szDataPath);
db_set_ws(hContact, "ContactPhoto", "Backup", szBackupName);
db_set_b(hContact, "ContactPhoto", "Locked", is_locked);
@@ -589,7 +589,7 @@ static int InternalSetMyAvatar(char *protocol, wchar_t *szFinalName, SetMyAvatar
if (saved) {
wchar_t relFile[1024];
- if (PathToRelativeT(globalFile, relFile, g_szDataPath))
+ if (PathToRelativeW(globalFile, relFile, g_szDataPath))
db_set_ws(NULL, AVS_MODULE, "GlobalUserAvatarFile", relFile);
else
db_set_ws(NULL, AVS_MODULE, "GlobalUserAvatarFile", globalFile);
diff --git a/plugins/AVS/src/utils.cpp b/plugins/AVS/src/utils.cpp
index 7fcbd8435f..a47b3f15c1 100644
--- a/plugins/AVS/src/utils.cpp
+++ b/plugins/AVS/src/utils.cpp
@@ -42,7 +42,7 @@ void MakePathRelative(MCONTACT hContact, wchar_t *path)
wchar_t szFinalPath[MAX_PATH];
szFinalPath[0] = '\0';
- size_t result = PathToRelativeT(path, szFinalPath, g_szDataPath);
+ size_t result = PathToRelativeW(path, szFinalPath, g_szDataPath);
if (result && szFinalPath[0] != '\0') {
db_set_ws(hContact, "ContactPhoto", "RFile", szFinalPath);
if (!db_get_b(hContact, "ContactPhoto", "Locked", 0))