diff options
-rw-r--r-- | plugins/ImportTXT/importtxt.dpr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ImportTXT/importtxt.dpr b/plugins/ImportTXT/importtxt.dpr index 7a586f2f70..1858eb04ae 100644 --- a/plugins/ImportTXT/importtxt.dpr +++ b/plugins/ImportTXT/importtxt.dpr @@ -112,8 +112,10 @@ end; function OnPreShutdown(wParam: wParam; lParam: lParam): int; cdecl;
begin
- if (hwndWizard <> 0) then
+ if IsWindow(hwndWizard) then
SendMessage(hwndWizard, WM_CLOSE, 0, 0);
+ if IsWindow(hwndDialog) then
+ SendMessage(hwndDialog, WM_CLOSE, 0, 0);
result := 0;
end;
|