浏览代码

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

Alexander Koblov 3 月之前
父节点
当前提交
f63a5a93c5
共有 1 个文件被更改,包括 2 次插入0 次删除
  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