From e6bd616989c06c3cb3efb1b9c4da9189868e6942 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 11 Aug 2013 11:07:10 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@5647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/QuickSearch/sr_window.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/QuickSearch') 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); -- cgit v1.2.3