* Fixed undefined return value of SysGetData function. Also don't ignore the input BufSize parameter but pass it on to GetValueData. Bug #19962.

git-svn-id: trunk@18178 -
This commit is contained in:
sergei 2011-08-12 10:43:12 +00:00
parent 47b943d236
commit b8c6c7c893

View File

@ -47,10 +47,9 @@ function TRegistry.SysGetData(const Name: String; Buffer: Pointer;
Var
DataType : TDataType;
BS : Integer;
begin
If TXmlregistry(FSysData).GetValueData(Name,DataType,Buffer^,BS) then
Result:=BufSize;
If TXmlregistry(FSysData).GetValueData(Name,DataType,Buffer^,Result) then
begin
Case DataType of
dtUnknown : RegData:=rdUnknown;