diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-08-02 08:59:46 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-08-02 08:59:46 +0000 |
commit | 81ef6547748bb256da82eff4c1b37eac32363c93 (patch) | |
tree | 6eaa50e45574826f06fd8d313f7497d6c34bc4aa | |
parent | 806438e49e626110dfed6cbb9b71e3a9e9b9fdde (diff) |
Crashfix for LinkList.
git-svn-id: http://svn.miranda-ng.org/main/trunk@1324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/HistoryLinkListPlus/src/linklist_fct.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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: <non-alphanumeric>"hyperlink"<whitespace>
|