Browse Source

* fix from Sebastian Hellwig for writeunicodestring bytes number, mantis 0038963

git-svn-id: trunk@49478 -
marco 4 years ago
parent
commit
c8be89c7fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/classes/streams.inc

+ 1 - 1
rtl/objpas/classes/streams.inc

@@ -1643,7 +1643,7 @@ Var
 begin
 begin
   B:=FEncoding.GetBytes(AString);
   B:=FEncoding.GetBytes(AString);
   if Length(B)>0 then
   if Length(B)>0 then
-    WriteBuffer(B[0],Length(Bytes));
+    WriteBuffer(B[0],Length(B));
 end;
 end;
 
 
 function TStringStream.ReadAnsiString(Count: Longint): AnsiString;
 function TStringStream.ReadAnsiString(Count: Longint): AnsiString;