소스 검색

fixed bug: xsdTryNextString returned allways true

git-svn-id: trunk@12937 -
ivost 16 년 전
부모
커밋
819e7d0913
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/libxml/src/xmlxsd.pas

+ 1 - 1
packages/libxml/src/xmlxsd.pas

@@ -495,7 +495,7 @@ end;
 function xsdTryParseString(Chars: xmlCharPtr; out Value: String): Boolean;
 begin
   Value := PChar(Chars);
-  Result := True;
+  Result := Assigned(Chars);
 end;
 
 function xsdTryParseBoolean(Chars: xmlCharPtr; out Value: Boolean): Boolean;