diff options
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/icolib/skin2opts.cpp | 4 | ||||
-rw-r--r-- | src/modules/skin/sounds.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/icolib/skin2opts.cpp b/src/modules/icolib/skin2opts.cpp index e18382844d..bea305bf78 100644 --- a/src/modules/icolib/skin2opts.cpp +++ b/src/modules/icolib/skin2opts.cpp @@ -547,7 +547,7 @@ INT_PTR CALLBACK DlgProcIconImport(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM LVITEM lvi;
GetDlgItemText(hwndDlg, IDC_ICONSET, fullPath, SIZEOF(fullPath));
- CallService(MS_UTILS_PATHTORELATIVET, (WPARAM)fullPath, (LPARAM)filename);
+ PathToRelativeT(fullPath, filename);
lvi.mask = LVIF_PARAM;
lvi.iItem = dragItem; lvi.iSubItem = 0;
ListView_GetItem(hPreview, &lvi);
@@ -874,7 +874,7 @@ INT_PTR CALLBACK DlgProcIcoLibOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM HWND htv = GetDlgItem(hwndDlg, IDC_CATEGORYLIST);
TCHAR filename[ MAX_PATH ];
- CallService(MS_UTILS_PATHTORELATIVET, (WPARAM)file, (LPARAM)filename);
+ PathToRelativeT(file, filename);
SAFE_FREE((void**)&file);
MySetCursor(IDC_WAIT);
diff --git a/src/modules/skin/sounds.cpp b/src/modules/skin/sounds.cpp index fc9443cf4d..19a469a13e 100644 --- a/src/modules/skin/sounds.cpp +++ b/src/modules/skin/sounds.cpp @@ -311,7 +311,7 @@ INT_PTR CALLBACK DlgProcSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM if ( !GetOpenFileName(&ofn))
break;
- CallService(MS_UTILS_PATHTORELATIVET, (WPARAM)str, (LPARAM)strFull);
+ PathToRelativeT(str, strFull);
snd.ptszTempFile = mir_tstrdup(strFull);
SetDlgItemText(hwndDlg, IDC_LOCATION, strFull);
}
|