summaryrefslogtreecommitdiff
path: root/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 /src
parent3079a6563ebc5887839ec29984206f2950638a4d (diff)
PathToRelativeT - forgotten macro
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/chat_options.cpp4
-rw-r--r--src/mir_app/src/skin2opts.cpp4
-rw-r--r--src/mir_app/src/sounds.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/core/stdmsg/src/chat_options.cpp b/src/core/stdmsg/src/chat_options.cpp
index f9b14c814f..11456ce2a9 100644
--- a/src/core/stdmsg/src/chat_options.cpp
+++ b/src/core/stdmsg/src/chat_options.cpp
@@ -491,7 +491,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg, UINT uMsg, WPARAM wParam,
}
{
wchar_t szTemp[MAX_PATH];
- PathToRelativeT(g_Settings.pszLogDir, szTemp);
+ PathToRelativeW(g_Settings.pszLogDir, szTemp);
SetDlgItemText(hwndDlg, IDC_LOGDIRECTORY, szTemp);
}
SetDlgItemText(hwndDlg, IDC_HIGHLIGHTWORDS, g_Settings.pszHighlightWords);
@@ -543,7 +543,7 @@ static INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg, UINT uMsg, WPARAM wParam,
if (idList) {
SHGetPathFromIDList(idList, szDirectory);
mir_wstrcat(szDirectory, L"\\");
- PathToRelativeT(szDirectory, szTemp);
+ PathToRelativeW(szDirectory, szTemp);
SetDlgItemText(hwndDlg, IDC_LOGDIRECTORY, mir_wstrlen(szTemp) > 1 ? szTemp : L"Logs\\");
CoTaskMemFree(idList);
}
diff --git a/src/mir_app/src/skin2opts.cpp b/src/mir_app/src/skin2opts.cpp
index 2b7f77bfef..f3cb06356f 100644
--- a/src/mir_app/src/skin2opts.cpp
+++ b/src/mir_app/src/skin2opts.cpp
@@ -673,7 +673,7 @@ public:
wchar_t filetmp[1] = { 0 };
if (wchar_t *file = OpenFileDlg(m_hwnd, filetmp, FALSE)) {
wchar_t filename[MAX_PATH];
- PathToRelativeT(file, filename);
+ PathToRelativeW(file, filename);
mir_free(file);
MySetCursor(IDC_WAIT);
@@ -940,7 +940,7 @@ INT_PTR CIconImportDlg::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
if (m_iDropHiLite != -1) {
wchar_t fullPath[MAX_PATH], filename[MAX_PATH];
m_iconSet.GetText(fullPath, _countof(fullPath));
- PathToRelativeT(fullPath, filename);
+ PathToRelativeW(fullPath, filename);
LVITEM lvi;
lvi.mask = LVIF_PARAM;
diff --git a/src/mir_app/src/sounds.cpp b/src/mir_app/src/sounds.cpp
index 0aec43e34c..8c60ee3b62 100644
--- a/src/mir_app/src/sounds.cpp
+++ b/src/mir_app/src/sounds.cpp
@@ -330,7 +330,7 @@ INT_PTR CALLBACK DlgProcSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM
if (!GetOpenFileName(&ofn))
break;
- PathToRelativeT(str, strFull);
+ PathToRelativeW(str, strFull);
snd.ptszTempFile = mir_wstrdup(strFull);
SetDlgItemText(hwndDlg, IDC_LOCATION, strFull);
}