LCL/SaveDialog: Fix unexpected behaviour when OnCanClose event is handled and returns CanClose=false. Issue #40297.

This commit is contained in:
wp_xyz 2023-06-05 13:02:26 +02:00
parent 73a69089d9
commit ccef4f2a79

View File

@ -1475,7 +1475,10 @@ begin
Result := S_OK;
end
else
begin
FDialog.UserChoice := mrNone;
Result := S_FALSE;
end;
end;
{$ifdef DebugCommonDialogEvents}
debugln('TFileDialogEvents.OnFileOk End');