mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 16:39:15 +02:00
Refactoring TTaskDialog: prevent possible crash in TLCLTaskDialog.
This commit is contained in:
parent
61fefaa794
commit
916196dede
@ -169,6 +169,8 @@ var
|
|||||||
mRes, I: Integer;
|
mRes, I: Integer;
|
||||||
aParent: HWND;
|
aParent: HWND;
|
||||||
begin
|
begin
|
||||||
|
if not Assigned(FDlg) then
|
||||||
|
Exit(False);
|
||||||
SetupControls;
|
SetupControls;
|
||||||
|
|
||||||
aParent := FDlg.ParentWindow;
|
aParent := FDlg.ParentWindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user