mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 01:39:27 +02:00
* 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:
parent
47b943d236
commit
b8c6c7c893
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user