mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 03:49:41 +02:00
FpDebug: Fix QuoteWideText => wrong result len
This commit is contained in:
parent
625e655423
commit
624696270b
@ -584,7 +584,7 @@ begin
|
||||
if (c = #0) and (SPos >= SEnd) then begin
|
||||
// END OF TEXT
|
||||
Assert(RPos-1 <= @Result[Length(Result)], 'RPos-1 <= @Result[Length(Result)]');
|
||||
SetLength(Result, RPos - @Result[1]);
|
||||
SetLength(Result, RPos - PWideChar(@Result[1]));
|
||||
exit;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user