Parcourir la source

fixed bug: xsdTryNextString returned allways true

git-svn-id: trunk@12937 -
ivost il y a 16 ans
Parent
commit
819e7d0913
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;