mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 18:19:45 +02:00
Create TMonitorData initialized.
This commit is contained in:
parent
1966ce7c1c
commit
ba6696d9ed
@ -431,8 +431,7 @@ begin
|
||||
if Result=Nil then
|
||||
begin
|
||||
// At some point we could cache this.
|
||||
GetMem(Result,SizeOf(TMonitorData));
|
||||
Result^:=Default(TMonitorData);
|
||||
New(Result);
|
||||
Result^.Init;
|
||||
SetMonitorData(aObject,Result);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user