浏览代码

* Fix bug ID #0038580: Empty text for startsstr

git-svn-id: trunk@48898 -
michael 4 年之前
父节点
当前提交
582e39e989
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/rtl-objpas/src/inc/strutils.pp

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

@@ -1051,7 +1051,7 @@ begin
   if (Length(AText) >= Length(ASubText)) and (ASubText <> '') then
   if (Length(AText) >= Length(ASubText)) and (ASubText <> '') then
     Result := StrLComp(PChar(ASubText), PChar(AText), Length(ASubText)) = 0
     Result := StrLComp(PChar(ASubText), PChar(AText), Length(ASubText)) = 0
   else
   else
-    Result := False;
+    Result := (AsubText='');
 end;
 end;