summaryrefslogtreecommitdiff
path: root/plugins/QuickSearch
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-11 11:07:10 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-11 11:07:10 +0000
commite6bd616989c06c3cb3efb1b9c4da9189868e6942 (patch)
treeedb6934ce38fd737fcaa8a66c2a0343432a12901 /plugins/QuickSearch
parent0f3c81a198dc1068ac974c743813bab9795b5a1a (diff)
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@5647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/QuickSearch')
-rw-r--r--plugins/QuickSearch/sr_window.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/QuickSearch/sr_window.pas b/plugins/QuickSearch/sr_window.pas
index 0b13cbeede..361ec3ca4e 100644
--- a/plugins/QuickSearch/sr_window.pas
+++ b/plugins/QuickSearch/sr_window.pas
@@ -1948,7 +1948,7 @@ begin
begin
i:=LV_GetLParam(grid,lplvcd^.nmcd.dwItemSpec);
MirVerW:=MainBuf[i,sub].text;
- if (MirVerW[0]<>#0) and (ServiceExists(MS_FP_GETCLIENTICONW)<>0) then
+ if (lstrlenW(MirVerW)<>0) and (ServiceExists(MS_FP_GETCLIENTICONW)<>0) then
begin
h:=CallService(MS_FP_GETCLIENTICONW,tlparam(MirVerW),0);
ListView_GetSubItemRect(grid,lplvcd^.nmcd.dwItemSpec,lplvcd^.iSubItem,LVIR_ICON,@rc);