소스 검색

* AnsiExtractquotedStr returns original string if unquoted

git-svn-id: trunk@34495 -
michael 9 년 전
부모
커밋
f4e3068c8b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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;