Explorar el Código

* Fix typo in ansiEndsString, resulting in wrong behaviour

git-svn-id: trunk@38777 -
michael hace 7 años
padre
commit
659bf09325
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/rtl-objpas/src/inc/strutils.pp

+ 1 - 1
packages/rtl-objpas/src/inc/strutils.pp

@@ -967,7 +967,7 @@ end;
 
 
 function AnsiEndsStr(const ASubText, AText: string): Boolean;
 function AnsiEndsStr(const ASubText, AText: string): Boolean;
 begin
 begin
-  Result := (ASubText = '') or (RightStr(AText, Length(ASubText)) = AText);
+  Result := (ASubText = '') or (RightStr(AText, Length(ASubText)) = ASubText);
 end;
 end;