summaryrefslogtreecommitdiff
path: root/plugins/Watrack/stat/statlog.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Watrack/stat/statlog.pas')
-rw-r--r--plugins/Watrack/stat/statlog.pas9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/Watrack/stat/statlog.pas b/plugins/Watrack/stat/statlog.pas
index 6cbcaf35b7..d5a0318a69 100644
--- a/plugins/Watrack/stat/statlog.pas
+++ b/plugins/Watrack/stat/statlog.pas
@@ -142,7 +142,7 @@ begin
(si^.album =NIL) and (si^.mfile=NIL) then
exit;
f:=Append(fname);
-// if dword(f)=INVALID_HANDLE_VALUE then f:=Rewrite(fname);
+// if THANDLE(f)=INVALID_HANDLE_VALUE then f:=Rewrite(fname);
if f=THANDLE(INVALID_HANDLE_VALUE) then exit;
FillChar(buf,SizeOf(buf),0);
lp:=@buf;
@@ -414,6 +414,7 @@ var
begin
Lock:=true;
ConvertFileName(fname,buf1);
+// CallService(MS_UTILS_PATHTOABSOLUTE,twparam(fname),tlparam(@buf1));
Root:=BuildTree(buf1,buf);
if Root<>nil then
begin
@@ -458,13 +459,14 @@ begin
else
fname:=PAnsiChar(wParam);
ConvertFileName(fname,log);
+// CallService(MS_UTILS_PATHTOABSOLUTE,twparam(fname),tlparam(@log));
AppendStat(log,pSongInfo(lParam));
end;
function PackLog(wParam:WPARAM;lParam:LPARAM):integer;cdecl;
begin
result:=0;
- mir_forkthread(@ThPackLog,nil);
+ {CloseHandle}(mir_forkthread(@ThPackLog,nil));
end;
function MakeReport(wParam:WPARAM;lParam:LPARAM):integer;cdecl;
@@ -489,6 +491,9 @@ begin
ConvertFileName(r,report);
ConvertFileName(l,template);
ConvertFileName(StatName,log);
+// CallService(MS_UTILS_PATHTOABSOLUTE,twparam(r),tlparam(@report));
+// CallService(MS_UTILS_PATHTOABSOLUTE,twparam(l),tlparam(@template));
+// CallService(MS_UTILS_PATHTOABSOLUTE,twparam(StatName),tlparam(@log));
if DoAddExt=BST_CHECKED then
ChangeExt(report,'htm');
if StatOut(report,log,template) then