* tests: Fixed string comparison.

git-svn-id: trunk@33302 -
This commit is contained in:
yury 2016-03-20 21:25:18 +00:00
parent a1b8c0f9e3
commit d43e5dcab8
2 changed files with 4 additions and 4 deletions

View File

@ -36,10 +36,10 @@ var
function CompareDesc(d1, d2 : PChar) : boolean;
begin
if Is_IntResource(d1) then
if Is_IntResource(d1) or Is_IntResource(d2) then
Result:=PtrUInt(d1)=PtrUInt(d2)
else
Result:=CompareChar0(d1[0],d2[0],MaxInt)=0;
Result:=StrComp(d1, d2) = 0;
end;
procedure ResFound(ResourceType, ResourceName : PChar; IDLanguage : word);

View File

@ -37,10 +37,10 @@ var
function CompareDesc(d1, d2 : PChar) : boolean;
begin
if Is_IntResource(d1) then
if Is_IntResource(d1) or Is_IntResource(d2) then
Result:=PtrUInt(d1)=PtrUInt(d2)
else
Result:=CompareChar0(d1[0],d2[0],MaxInt)=0;
Result:=StrComp(d1, d2) = 0;
end;
procedure ResFound(ResourceType, ResourceName : PChar; IDLanguage : word);