|
@@ -1447,13 +1447,7 @@ var
|
|
begin
|
|
begin
|
|
SetLength(S,Len);
|
|
SetLength(S,Len);
|
|
If (Buf<>Nil) and (Len>0) then
|
|
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;
|
|
end;
|
|
|
|
|
|
|
|
|