summaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'rtl')
-rw-r--r--rtl/inc/wustring22.inc8
1 files changed, 1 insertions, 7 deletions
diff --git a/rtl/inc/wustring22.inc b/rtl/inc/wustring22.inc
index 6b73469bb7..8a48073a33 100644
--- a/rtl/inc/wustring22.inc
+++ b/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;