diff options
-rw-r--r-- | plugins/QuickSearch/sr_window.pas | 2 |
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);
|