Refactoring TTaskDialog: prevent possible crash in TLCLTaskDialog.

This commit is contained in:
Bart 2023-07-19 18:53:23 +02:00
parent 61fefaa794
commit 916196dede

View File

@ -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;