瀏覽代碼

* Fix typo in ansiEndsString, resulting in wrong behaviour

git-svn-id: trunk@38777 -
michael 7 年之前
父節點
當前提交
659bf09325
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 begin
-  Result := (ASubText = '') or (RightStr(AText, Length(ASubText)) = AText);
+  Result := (ASubText = '') or (RightStr(AText, Length(ASubText)) = ASubText);
 end;