summaryrefslogtreecommitdiff
path: root/plugins/mRadio/i_optdlg.inc
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-01-16 03:20:32 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-01-16 03:20:32 +0000
commit2f30799b091475f1086b756bba4b43ebacd3aefc (patch)
tree55939d916b3800b341da6b734c7f6e10a7866eb4 /plugins/mRadio/i_optdlg.inc
parentde34b251b442cdf72b13c407d6b60c343c123bb3 (diff)
sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@7675 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/mRadio/i_optdlg.inc')
-rw-r--r--plugins/mRadio/i_optdlg.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/mRadio/i_optdlg.inc b/plugins/mRadio/i_optdlg.inc
index 7e72aa5409..7f1ec138cd 100644
--- a/plugins/mRadio/i_optdlg.inc
+++ b/plugins/mRadio/i_optdlg.inc
@@ -334,7 +334,7 @@ begin
dst:=nil;
if SelectDirectory(pWideChar(nil),dst,Dialog) then
begin
- CallService(MS_UTILS_PATHTORELATIVEW,twparam(dst),tlparam(@buf));
+ PathToRelativeW(dst,buf);
SetDlgItemTextW(Dialog,IDC_ED_RECPATH,pWideChar(@buf));
mFreeMem(dst);
end;
@@ -468,8 +468,10 @@ begin
begin
mGetMem(recpath,MAX_PATH*SizeOf(WideChar));
recpath^:=#0;
- CallService(MS_UTILS_PATHTORELATIVEW,twparam(@buf),tlparam(recpath));
- end;
+ PathToRelativeW(buf,recpath);
+ end
+ else
+ recpath:=GetDefaultRecPath;
DBWriteUnicode(0,PluginName,optRecPath,recpath);
end;
end;
@@ -713,7 +715,7 @@ begin
dst:=nil;
if SelectDirectory(pWideChar(nil),dst,Dialog) then
begin
- CallService(MS_UTILS_PATHTORELATIVEW,twparam(dst),tlparam(@buf));
+ PathToRelativeW(dst,buf);
SetDlgItemTextW(Dialog,IDC_BASSPATH,pWideChar(@buf));
mFreeMem(dst);
end;