Bugfix: Delphi's DB.pas::TWideStringField.SetAsWideString() puts a PWideChar into the buffer before calling this, so deserializing it as a PWideString is probably wrong.

This commit is contained in:
rosenfield
2008-05-13 19:39:29 +00:00
parent 9b42d2ac70
commit cb18638372

View File

@@ -1296,7 +1296,7 @@ begin
{ Processes widestring fields. }
else if Field.DataType = ftWideString then
begin
RowAccessor.SetUnicodeString(ColumnIndex, PWideString(Buffer)^);
RowAccessor.SetUnicodeString(ColumnIndex, PWideChar(Buffer));
end
{ Processes all other fields. }
else if (Field.FieldKind = fkData) and (Field.DataType = ftString) and