Browse Source

* part of r13828, forgot to commit (don't stop at #0 in setstring)

git-svn-id: trunk@14053 -
Jonas Maebe 15 years ago
parent
commit
c768e51cf2
1 changed files with 1 additions and 7 deletions
  1. 1 7
      rtl/inc/wustring22.inc

+ 1 - 7
rtl/inc/wustring22.inc

@@ -1447,13 +1447,7 @@ var
 begin
   SetLength(S,Len);
   If (Buf<>Nil) and (Len>0) then
-    begin
-      BufLen := IndexByte(Buf^, Len+1, 0);
-      If (BufLen>0) and (BufLen < Len) then
-        Len := BufLen;
-      widestringmanager.Ansi2WideMoveProc(Buf,S,Len);
-      //PWideChar(Pointer(S)+Len*sizeof(WideChar))^:=#0;
-    end;
+    widestringmanager.Ansi2WideMoveProc(Buf,S,Len);
 end;