From c0c127c45c9a152b3c221d8068a71b0c9aa513b4 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Wed, 25 May 2011 12:39:54 +0000 Subject: fixed crash git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@120 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- popup/src/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'popup/src') diff --git a/popup/src/common.h b/popup/src/common.h index b3ce289..d975e0d 100644 --- a/popup/src/common.h +++ b/popup/src/common.h @@ -137,7 +137,8 @@ inline INT_PTR DBGetContactSettingStringX(HANDLE hContact, const char *ModuleNam default: break; } - CallService(MS_DB_CONTACT_FREEVARIANT, 0, (LPARAM)&dbv); + if(!result) + CallService(MS_DB_CONTACT_FREEVARIANT, 0, (LPARAM)&dbv); return ret; } -- cgit v1.2.3