mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:09:27 +02:00
* tests: Fixed string comparison.
git-svn-id: trunk@33302 -
This commit is contained in:
parent
a1b8c0f9e3
commit
d43e5dcab8
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user