summaryrefslogtreecommitdiff
path: root/plugins/Watrack/waticons.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Watrack/waticons.pas')
-rw-r--r--plugins/Watrack/waticons.pas8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Watrack/waticons.pas b/plugins/Watrack/waticons.pas
index 94b511767e..b6a9bbc2b4 100644
--- a/plugins/Watrack/waticons.pas
+++ b/plugins/Watrack/waticons.pas
@@ -51,13 +51,13 @@ var
begin
result:=true;
sid.szDefaultFile.a:='icons\'+ICOCtrlName;
- CallService(MS_UTILS_PATHTOABSOLUTE,wparam(sid.szDefaultFile),lparam(@buf));
+ PathToAbsolute(sid.szDefaultFile.a,buf);
hIconDLL:=LoadLibraryA(buf);
if hIconDLL=0 then // not found
begin
sid.szDefaultFile.a:='plugins\'+ICOCtrlName;
- CallService(MS_UTILS_PATHTOABSOLUTE,wparam(sid.szDefaultFile),lparam(@buf));
+ PathToAbsolute(sid.szDefaultFile.a,buf);
hIconDLL:=LoadLibraryA(buf);
end;
@@ -142,13 +142,13 @@ begin
if not IconsLoaded then
begin
path:='icons\'+ICOCtrlName;
- CallService(MS_UTILS_PATHTOABSOLUTE,wparam(path),lparam(@buf));
+ PathToAbsolute(path,buf);
hIconDLL:=LoadLibraryA(buf);
if hIconDLL=0 then // not found
begin
sid.szDefaultFile.a:='plugins\'+ICOCtrlName;
- CallService(MS_UTILS_PATHTOABSOLUTE,wparam(path),lparam(@buf));
+ PathToAbsolute(path,buf);
hIconDLL:=LoadLibraryA(buf);
end;