summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-01-17 18:52:53 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-01-17 18:52:53 +0000
commitfd8db8e9151a79a0391677afd06d4c79fdf4f84b (patch)
tree154ed79c2c4a3ec574f09f0ca3e3edbbc956bc74 /plugins
parent1c6e6e286bbe94a091361853935e10b8fc0a7dfc (diff)
QuickSearch: possible crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@7693 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/QuickSearch/i_ok.inc3
1 files changed, 1 insertions, 2 deletions
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