Browse Source

* set destination codepage in DefaultUnicode2AnsiMove

git-svn-id: trunk@22247 -
Jonas Maebe 13 years ago
parent
commit
e073bf3008
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/inc/ustrings.inc

+ 3 - 0
rtl/inc/ustrings.inc

@@ -67,6 +67,9 @@ var
   p : PAnsiChar;
 begin
   setlength(dest,len);
+  if not assigned(pointer(dest)) then
+    exit;
+  PAnsiRec(dest)^.CodePage:=cp;
   p:=pointer(dest);         {SetLength guarantees that dest is unique}
   for i:=1 to len do
     begin