From 81ef6547748bb256da82eff4c1b37eac32363c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 2 Aug 2012 08:59:46 +0000 Subject: Crashfix for LinkList. git-svn-id: http://svn.miranda-ng.org/main/trunk@1324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryLinkListPlus/src/linklist_fct.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/HistoryLinkListPlus') diff --git a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp index 9f7ab2bcac..17036bb8f6 100644 --- a/plugins/HistoryLinkListPlus/src/linklist_fct.cpp +++ b/plugins/HistoryLinkListPlus/src/linklist_fct.cpp @@ -78,6 +78,10 @@ int ExtractURI(DBEVENTINFO *dbei, HANDLE hEvent, LISTELEMENT *listStart) ZeroMemory(time, _countof(time)*sizeof(TCHAR)); msg = DbGetEventTextT(dbei, CP_ACP); + + if ( msg == NULL ) + return 0; + for ( i=0; msg[i]; ) { //hyperlinks are delimited by: "hyperlink" -- cgit v1.2.3