mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 10:29:21 +02:00
* Fix for Mantis #20041, check assignment of buffer in TField.Getdata
(IsNull might call it with a dummy buffer) git-svn-id: trunk@18854 -
This commit is contained in:
parent
9772257404
commit
275261f815
@ -558,8 +558,8 @@ begin
|
||||
DatabaseErrorFmt(SNoDataset,[FieldName]);
|
||||
If FVAlidating then
|
||||
begin
|
||||
result:=Not(FValueBuffer=Nil);
|
||||
If Result then
|
||||
result:=assigned(FValueBuffer);
|
||||
If Result and assigned(Buffer) then
|
||||
Move (FValueBuffer^,Buffer^ ,DataSize);
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user