[Lazarus] TLRSObjectReader.SkipValue

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Oct 31 15:31:19 CET 2011


I'm not sure, but the handling of Wide/Unicode strings looks wrong:

     vaBinary, vaLString, vaWString{$IFNDEF VER2_2}, vaUString{$ENDIF}:
       begin
         Count:=ReadIntegerContent;
         SkipBytes(Count);
       end;

For WideChars Count*2 bytes have to be skipped, according to e.g. 
ReadWideString.

DoDi





More information about the Lazarus mailing list