diff options
author | Alexey Kulakov <panda75@bk.ru> | 2014-11-15 21:18:07 +0000 |
---|---|---|
committer | Alexey Kulakov <panda75@bk.ru> | 2014-11-15 21:18:07 +0000 |
commit | 8148930684c823e526ab8092b33c129a8b17db74 (patch) | |
tree | 9184d382e56ac1106e5b45e8514f1fd21e714973 /plugins/Utils.pas | |
parent | 62a14ba4730f52cce31b1b71565554691496df36 (diff) |
Watrack: cheat for AIMP processing if Artist/Title is empty (to avoid wrong result)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10997 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Utils.pas')
-rw-r--r-- | plugins/Utils.pas/common.pas | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/Utils.pas/common.pas b/plugins/Utils.pas/common.pas index 37146dd0fd..ce0ca4c22d 100644 --- a/plugins/Utils.pas/common.pas +++ b/plugins/Utils.pas/common.pas @@ -130,6 +130,7 @@ procedure LowerCase(src:pWideChar); function StrDup (var dst:PAnsiChar;src:PAnsiChar;len:cardinal=0):PAnsiChar;
function StrDupW(var dst:PWideChar;src:PWideChar;len:cardinal=0):PWideChar;
+function StrEmpty:pointer;
function StrDelete (aStr:PAnsiChar;pos,len:cardinal):PAnsiChar;
function StrDeleteW(aStr:PWideChar;pos,len:cardinal):PWideChar;
function StrInsert (substr,src:PAnsiChar;pos:cardinal):PAnsiChar;
@@ -1592,6 +1593,12 @@ begin result:=dst;
end;
+function StrEmpty:pointer;
+begin
+ mGetMem(result,SizeOf(WideChar));
+ pWord(result)^:=0;
+end;
+
function StrCopyE(dst:PAnsiChar;src:PAnsiChar;len:cardinal=0):PAnsiChar;
var
l:cardinal;
|