diff options
author | Alexey Kulakov <panda75@bk.ru> | 2014-04-24 14:55:20 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2014-04-24 14:55:20 +0000 |
commit | c3a168743616db6606702db5ad0fecab4dfee3da (patch) | |
tree | 523ef1399093917f3565d769826ceecb7eb2ef6c /plugins/Watrack/stat/statlog.pas | |
parent | 90ad600cb38a04c9272a3599c72d6559c822b155 (diff) |
Miranda API update
Watrack refactoring, API changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@9068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack/stat/statlog.pas')
-rw-r--r-- | plugins/Watrack/stat/statlog.pas | 9 |
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
|