mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:09:22 +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
|
Var
|
||||||
DataType : TDataType;
|
DataType : TDataType;
|
||||||
BS : Integer;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
If TXmlregistry(FSysData).GetValueData(Name,DataType,Buffer^,BS) then
|
Result:=BufSize;
|
||||||
|
If TXmlregistry(FSysData).GetValueData(Name,DataType,Buffer^,Result) then
|
||||||
begin
|
begin
|
||||||
Case DataType of
|
Case DataType of
|
||||||
dtUnknown : RegData:=rdUnknown;
|
dtUnknown : RegData:=rdUnknown;
|
||||||
|
Loading…
Reference in New Issue
Block a user