Explorar o código

FIX: Find files - crash with an invalid regular expression (issue #2249)

Alexander Koblov hai 3 meses
pai
achega
f63a5a93c5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/fFindDlg.pas

+ 2 - 0
src/fFindDlg.pas

@@ -1729,6 +1729,8 @@ begin
   Self.Repaint;
   Application.ProcessMessages;
 
+  if InvalidRegExpr then Exit;
+
   if cbFindInArchive.Enabled then
   begin
     if (cmbFindPathStart.Text = '') then begin