Explorar o código

fixed bug: xsdTryNextString returned allways true

git-svn-id: trunk@12937 -
ivost %!s(int64=16) %!d(string=hai) anos
pai
achega
819e7d0913
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;