From fd8db8e9151a79a0391677afd06d4c79fdf4f84b Mon Sep 17 00:00:00 2001 From: Alexey Kulakov Date: Fri, 17 Jan 2014 18:52:53 +0000 Subject: QuickSearch: possible crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@7693 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/QuickSearch/i_ok.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/QuickSearch') diff --git a/plugins/QuickSearch/i_ok.inc b/plugins/QuickSearch/i_ok.inc index 08bfafab09..52c617b66d 100644 --- a/plugins/QuickSearch/i_ok.inc +++ b/plugins/QuickSearch/i_ok.inc @@ -267,7 +267,6 @@ var dbei:TDBEVENTINFO; b:bool; begin - FillChar(res,SizeOf(tQSRec),0); res.data:=uint_ptr(-1); mFreeMem(res.text); with column^ do @@ -494,7 +493,7 @@ begin SetLength(MainBuf,cnt,qsopt.numcolumns); SetLength(FlagBuf,cnt); - for i:=0 to cnt1-1 do + for i:=0 to cnt-1 do FillChar(MainBuf[i][0],qsopt.numcolumns*SizeOf(tQSRec),0); for i:=0 to qsopt.numcolumns-1 do -- cgit v1.2.3