From 5e1eb14d255dbce63df6891d60e08732fed3491c Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 5 Dec 2014 10:45:31 +0000 Subject: MenuEX crash fix (by Mataes) git-svn-id: http://svn.miranda-ng.org/main/trunk@11249 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MenuItemEx/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/MenuItemEx/src/main.cpp') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 8e1dc6778a..81817ca216 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -281,8 +281,10 @@ void GetID(MCONTACT hContact, LPSTR szProto, LPSTR szID, size_t dwIDSize) mir_snprintf(szID, dwIDSize, "%u", dbv_uniqueid.dVal); else if (dbv_uniqueid.type == DBVT_WORD) mir_snprintf(szID, dwIDSize, "%u", dbv_uniqueid.wVal); + else if (dbv_uniqueid.type == DBVT_BLOB) + mir_snprintf(szID, dwIDSize, "%s", dbv_uniqueid.cpbVal); else - strncpy_s(szID, dwIDSize, (char*)dbv_uniqueid.cpbVal, _TRUNCATE); + strncpy_s(szID, dwIDSize, (char*)dbv_uniqueid.pszVal, _TRUNCATE); db_free(&dbv_uniqueid); } -- cgit v1.2.3