* Fixed bugs 9143 and 11706 (duplicates)

git-svn-id: trunk@11612 -
This commit is contained in:
joost 2008-08-18 21:00:24 +00:00
parent a891358859
commit 80749e3513

View File

@ -1179,12 +1179,12 @@ var
Buffer : PWideChar;
begin
if DataSize <= dsMaxStringSize then begin
Result := GetData(@FixBuffer, False);
Result := GetData(@FixBuffer, True);
aValue := FixBuffer;
end else begin
SetLength(DynBuffer, Succ(Size));
Buffer := PWideChar(DynBuffer);
Result := GetData(Buffer, False);
Result := GetData(Buffer, True);
if Result then
aValue := Buffer;
end;