summaryrefslogtreecommitdiff
path: root/plugins/mRadio/rglobal.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mRadio/rglobal.pas')
-rw-r--r--plugins/mRadio/rglobal.pas6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/mRadio/rglobal.pas b/plugins/mRadio/rglobal.pas
index 07f3978dda..a6bccaa98f 100644
--- a/plugins/mRadio/rglobal.pas
+++ b/plugins/mRadio/rglobal.pas
@@ -226,15 +226,11 @@ end;
function GetDefaultRecPath:pWideChar;
var
- dat:TREPLACEVARSDATA;
mstr,szData:pWideChar;
buf:array [0..MAX_PATH-1] of WideChar;
begin
- FillChar(dat,SizeOf(dat),0);
- dat.cbSize :=SizeOf(TREPLACEVARSDATA);
- dat.dwFlags:=RVF_UNICODE;
szData:='%miranda_userdata%'+'\'+cPluginName;
- mstr:=pWideChar(CallService(MS_UTILS_REPLACEVARS, WPARAM(szData), LPARAM(@dat)));
+ mstr:=Utils_ReplaceVarsW(szData);
PathToRelativeW(mstr,buf);
StrDupW(result,buf);
mir_free(mstr);