Browse Source

* AnsiExtractquotedStr returns original string if unquoted

git-svn-id: trunk@34495 -
michael 9 năm trước cách đây
mục cha
commit
f4e3068c8b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      rtl/objpas/sysutils/sysstr.inc

+ 2 - 1
rtl/objpas/sysutils/sysstr.inc

@@ -630,7 +630,7 @@ begin
  Q := StrEnd(P);
  result:='';
  if P=Q then exit;
- if P^<>quote then exit;
+ if P^<>quote then exit(strpas(P));
  inc(p);
 
  setlength(result,(Q-P)+1);
@@ -1836,6 +1836,7 @@ var p : pchar;
 begin
   p:=pchar(pointer(s)); // work around CONST. Ansiextract is safe for nil
   result:=AnsiExtractquotedStr(p,AQuote);
+  
 end;
 
 function StrToBool(const S: string): Boolean;