mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 22:49:37 +02:00
* edited fix from Rimgaudas Laucius to fix #7868
git-svn-id: trunk@5564 -
This commit is contained in:
parent
139408b512
commit
a5c5c0956d
@ -237,9 +237,12 @@ Procedure fpc_WideStr_Incr_Ref(Var S : Pointer);[Public,Alias:'FPC_WIDESTR_INCR_
|
||||
If S=Nil then
|
||||
exit;
|
||||
{$ifdef FPC_WINLIKEWIDESTRING}
|
||||
p:=s;
|
||||
fpc_WideStr_SetLength(WideString(s),length(WideString(p)));
|
||||
move(p^,s^,length(WideString(p))*sizeof(widechar));
|
||||
if S<>nil then
|
||||
begin
|
||||
p:=NewWidestring(length(WideString(S)));
|
||||
move(s^,p^,length(WideString(s))*sizeof(widechar));
|
||||
end;
|
||||
s:= p;
|
||||
{$else FPC_WINLIKEWIDESTRING}
|
||||
{ Let's be paranoid : Constant string ??}
|
||||
If PWideRec(S-WideFirstOff)^.Ref<0 then exit;
|
||||
|
Loading…
Reference in New Issue
Block a user